wangzongming / esp-ai

The simplest and most cost-effective AI integration solution, enabling any device to achieve intelligent conversation functionality (based on ESP development boards). If you like this project, please give it a Star! | 最简单、最低成本的AI接入方案,让任何物品都能实现智能对话功能(基于ESP开发板)。喜欢本项目的话点个 Star 吧,您的一个 Star 对目前的仓库发展非常重要
https://espai.fun
Other
257 stars 38 forks source link

audio_tools::I2SConfigESP32V1类中缺少channel_format和auto_clear #7

Closed chadyi closed 2 months ago

chadyi commented 2 months ago

d:\arduinocode\libraries\esp-ai\src\esp-ai.cpp: In member function 'void ESP_AI::speaker_i2s_setup()': d:\arduinocode\libraries\esp-ai\src\esp-ai.cpp:137:12: error: 'class audio_tools::I2SConfigESP32V1' has no member named 'channel_format' 137 | config.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT; | ^~~~~~ d:\arduinocode\libraries\esp-ai\src\esp-ai.cpp:141:12: error: 'class audio_tools::I2SConfigESP32V1' has no member named 'auto_clear' 141 | config.auto_clear = true; | ^~~~~~

exit status 1

Compilation error: exit status 1

wangzongming commented 2 months ago

该问题原因:

  1. esp 开发板不是 2.x 版本,
  2. 使用的开发板不是 esp32s3
chadyi commented 2 months ago

thx