* refactor: Remove hardcoded loop delay for GIF playback in LcdDisplay class * chore: Update esp-ml307 and uart-eth-modem component versions in idf_component.yml - Bump esp-ml307 version from ~3.6.3 to ~3.6.4 - Update uart-eth-modem version from ~0.3.1 to ~0.3.2 * feat: Add PrintPmLocks method to SystemInfo class - Introduced PrintPmLocks method to display power management locks using esp_pm_dump_locks. - Updated system_info.h to declare the new method. * refactor: Streamline audio codec initialization and enablement - Removed redundant channel enable checks from AudioCodec::Start. - Added channel enablement in CreateDuplexChannels for various audio codecs. - Implemented EnableInput and EnableOutput methods in NoAudioCodec for better control over input/output states. * refactor: Delay audio success sound playback until after activation completion - Moved the success sound playback to a scheduled task to ensure it occurs after the activation process is complete. - This change improves the responsiveness of the application during activation events. * refactor: Update camera integration from EspVideo to Esp32Camera - Replaced EspVideo with Esp32Camera for improved camera configuration and initialization. - Streamlined camera setup by utilizing a new configuration structure for better clarity and maintainability. - Updated README.md to remove outdated camera sensor configuration instructions. * refactor: Update audio demuxing process in AudioService - Replaced the existing demuxer instance with a local unique pointer in the PlaySound method for better memory management. - Moved the OnDemuxerFinished callback setup into the PlaySound method to ensure it is correctly associated with the new demuxer instance. - Removed the member variable demuxer_ from AudioService to streamline the class structure.
ESP-Hi
简介
ESP-Hi 是 ESP Friends 开源的一款基于 ESP32C3 的超低成本 AI 对话机器人。ESP-Hi 集成了一个0.96寸的彩屏,用于显示表情,机器狗已实现数十种动作。通过对 ESP32-C3 外设的充分挖掘,仅需最少的板级硬件即可实现拾音和发声,同步优化了软件,降低内存与 Flash 占用,在资源受限的情况下同时实现了唤醒词检测与多种外设驱动。硬件详情等可查看立创开源项目。
WebUI
ESP-Hi x 小智内置了一个控制身体运动的 WebUI,请将手机与 ESP-Hi 连接到同一个 Wi-Fi 下,手机访问 http://esp-hi.local/ 以使用。
如需禁用,请取消 ESP_HI_WEB_CONTROL_ENABLED,即取消勾选 Component config → Servo Dog Configuration → Web Control → Enable ESP-HI Web Control。
配置、编译命令
由于 ESP-Hi 需要配置较多的 sdkconfig 选项,推荐使用编译脚本编译。
编译
python ./scripts/release.py esp-hi
如需手动编译,请参考 esp-hi/config.json 修改 menuconfig 对应选项。
烧录
idf.py flash
Tip
舵机控制会占用 ESP-Hi 的 USB Type-C 接口,导致无法连接电脑(无法烧录/查看运行日志)。如遇此情况,请按以下提示操作:
烧录
- 断开 ESP-Hi 的电源,只留头部,不要连接身体。
- 按住 ESP-Hi 的按钮并连接电脑。
此时,ESP-Hi (ESP32C3) 应当处于烧录模式,可以使用电脑烧录程序。烧录完成后,可能需要重新插拔电源。
查看 log
请设置
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y,即Component config→ESP System Settings→Channel for console output选择USB Serial/JTAG Controller。这同时会禁用舵机控制功能。