From 8af22bc965e3f1fc3d6091fe89bd15ac58d57cdc Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Fri, 17 Nov 2023 21:49:30 +0200 Subject: [PATCH] audio: stop audio recorder on STT error On STT error, the pipeline would stop after printing "STT error", and the line would be overwritten with "Thinking". --- main/audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/audio.c b/main/audio.c index 89a7d8399..daed59f6e 100644 --- a/main/audio.c +++ b/main/audio.c @@ -166,6 +166,7 @@ static esp_err_t cb_ae_hs(audio_element_handle_t el, audio_event_iface_msg_t *ev willow_http_stream_t type_hs = (willow_http_stream_t) data; if (type_hs == WILLOW_HS_STT) { + audio_recorder_trigger_stop(hdl_ar); war.fn_err("STT error"); ESP_LOGE(TAG, "error opening STT endpoint (%d)", ae_status); ui_pr_err("STT error", "Check server & settings");