Skip to content

Commit

Permalink
audio: stop audio recorder on STT error
Browse files Browse the repository at this point in the history
On STT error, the pipeline would stop after printing "STT error", and
the line would be overwritten with "Thinking".
  • Loading branch information
stintel committed Nov 22, 2023
1 parent a4483c4 commit e6dfb04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e6dfb04

Please sign in to comment.