1. 进一步拓展了语音识别,目前可以从sd卡导入模型,避免了model文件占用flash分区大小

2. 进一步修改了语音识别,关闭了关键词唤醒功能,只保留了指令识别功能
3. 构建了业务层的基本框架(增加了底层驱动对于的C++兼容),业务代码采用C++编写,启用了RTTI(运行时类型识别)
This commit is contained in:
Misaki
2025-09-03 00:19:14 +08:00
parent ce0998c1c6
commit 5d79f88918
42 changed files with 822 additions and 100 deletions
+5 -3
View File
@@ -6,8 +6,7 @@
#include "err_handle.h"
#include "drivers_test.h"
#include "CppHandle.h"
void app_main(void)
{
@@ -33,7 +32,10 @@ void app_main(void)
// mic_speech_test();
mic_speech_and_gif_and_music_test();
// mic_speech_and_gif_and_music_test();
Cpp_Hand();
ESP_GOTO(err);
err:
ESP_LOGI("app_main", "app_main error");
+14
View File
@@ -1,10 +1,13 @@
idf_component_register(SRCS "Bionic_sphere.c"
# 测试
"../test/driver_test/drivers_test.c" # 测试用例
"../test/EXIO_Test/TCA9554PWR_Test.c" # 测试用例
"../test/audio_test/audio_test.c" # 测试用例
"../test/gif_displat_test/gif_test.c" # 测试用例
# 工具库
"../Util/general_err_handle/err_handle.c" # 错误处理库
"../Util/tools/tools.c" # 工具库
# 底层驱动库
"../Lib/I2C_Driver/I2C_Driver.c" # IIC底层驱动库
"../Lib/QMI8658/QMI8658.c" # IMU驱动库
"../Lib/BAT_Driver/BAT_Driver.c" # 电池adc驱动库
@@ -22,6 +25,12 @@ idf_component_register(SRCS "Bionic_sphere.c"
"../Lib/Display/Touch_Driver/esp_lcd_touch/esp_lcd_touch.c" # 触摸屏驱动库
"../Lib/PWR_Key/PWR_Key.c" # PWR按键驱动库
"../Lib/MIC_Driver/MIC_Speech.c" # 录音驱动库
# 业务代码(使用Cpp编写)
"../Bionic_Core/PetBaseClass/PetBaseClass.cpp" # 宠物基类库
"../Bionic_Core/OTAClass/OTAClass.cpp" # OTA类库
"../Bionic_Core/CommClass/CommClass.cpp" # 通信类库
"../Bionic_Core/ToolsClass/ToolsClass.cpp" # 工具类库
"../Bionic_Core/CppHandle/CppHandle.cpp" # C++&C兼容库
INCLUDE_DIRS "."
"../test/driver_test"
"../test/EXIO_Test"
@@ -46,6 +55,11 @@ idf_component_register(SRCS "Bionic_sphere.c"
"../Lib/Display/Touch_Driver/esp_lcd_touch"
"../Lib/PWR_Key"
"../Lib/MIC_Driver"
"../Bionic_Core/PetBaseClass"
"../Bionic_Core/OTAClass"
"../Bionic_Core/CommClass"
"../Bionic_Core/ToolsClass"
"../Bionic_Core/CppHandle"
PRIV_REQUIRES # 私有依赖
driver
bt