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 17, 2023
1 parent ca7159b commit 6d5a362
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 @@ -154,6 +154,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 6d5a362

Please sign in to comment.