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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user