Xinyuan-LilyGO / TTGO_TWatch_Library

MIT License
890 stars 284 forks source link

esp_vad.h: No such file or directory #207

Open robgerpin opened 1 year ago

robgerpin commented 1 year ago

Error compiling Factory demo example code:

Compilation error: esp_vad.h: No such file or directory

include

What is the library dependency?

alviso commented 1 year ago

Same issue here. Please comment

lewisxhe commented 1 year ago

Please update esp32_core to the latest, this is the built-in function of esp image

alviso commented 1 year ago

Thanks. Funny enough, switching to 2.0.5 solved it for me (previously 2.0.12)

lewisxhe commented 1 year ago

esp-sr exists on the master branch, but I don't know why it was removed in the release version. I will mark the version

https://github.com/espressif/arduino-esp32/tree/master/tools/sdk/esp32s3/include

lewisxhe commented 1 year ago

I don't understand why esp-sr has been removed after 2.0.9. Please use version 2.0.9 and I will investigate later.

ddlsmurf commented 1 year ago

So I didn't test 2.0.9, but I had this error with .12, so rolled back. For my fellow googlers, here's the snippet to add to your platformio.ini file to do so fo 2.0.6 which does fix this issue (too - if someone can try 2.0.9 and report that would be much appreciated):

platform_packages =
    platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git@2.0.6
jeff-burright commented 11 months ago

So I didn't test 2.0.9, but I had this error with .12, so rolled back. For my fellow googlers, here's the snippet to add to your platformio.ini file to do so fo 2.0.6 which does fix this issue (too - if someone can try 2.0.9 and report that would be much appreciated):

platform_packages =
    platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git@2.0.6

I am having the same esp_vad.h issue, but when I tried this quoted fix it threw me an exception like so:

PackageException: Package version 3.0.0+sha.6f7a1ca doesn't satisfy requirements 2.0.9 based on PackageMetadata <type=tool name=framework-arduinoespressif32 version=3.0.0+sha.6f7a1ca spec={'owner': 'platformio', 'id': None, 'name': 'framework-arduinoespressif32', 'requirements': '2.0.9', 'uri': 'git+https://github.com/espressif/arduino-esp32.git'}

jhohannfabian commented 11 months ago

Hi, I have the same problem. If you reduced it to the proposed version, it compiles, but does not record the voice. In the Arduino IDE 2.014 version, they do not include the esp_vad.h library. I tried adding it, pasting it, and couldn't get it to work.