feat(voice): add local wake response prompt

Enable the packaged wake response prompt by default and add the MP3-to-device-Opus conversion utility.
This commit is contained in:
chenjintao
2026-08-10 17:40:12 +08:00
parent e5c1564130
commit 617255bdab
6 changed files with 358 additions and 14 deletions
+6 -3
View File
@@ -50,11 +50,14 @@ fi
if ! rg -n 'TQ_LOCAL_WAKE_RESPONSE_PROMPT_ENABLE' \
main/Kconfig.projbuild \
components/control_plane/src/multimodal/control_plane_multimodal_local_wake.c >/dev/null 2>&1 ||
! rg -n '/littlefs/audio_prompts/local_wake_response\.opus' \
! rg -n 'CONFIG_TQ_LOCAL_WAKE_RESPONSE_PROMPT_ENABLE=y' \
sdkconfig.defaults >/dev/null 2>&1 ||
! rg -n 'local_wake_response\.opus' \
main/Kconfig.projbuild \
sdkconfig.defaults \
components/control_plane/src/multimodal/control_plane_multimodal_local_wake.c >/dev/null 2>&1; then
fail "Local wake response prompt must keep its disabled asset placeholder contract"
components/control_plane/src/multimodal/control_plane_multimodal_local_wake.c >/dev/null 2>&1 ||
[[ ! -f components/platform/assets/audio_prompts/local_wake_response.opus ]]; then
fail "Local wake response prompt must remain enabled with its packaged asset contract"
fi
if ! rg -n '#include "esp_afe_aec.h"' components/platform/src/multimodal/audio_pipeline.c >/dev/null 2>&1 ||
! rg -n 'afe_aec_create\(' components/platform/src/multimodal/audio_pipeline/audio_pipeline_codec_impl.c >/dev/null 2>&1 ||