Skip to content

Commit

Permalink
support stopping when awaiting a response (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrendt authored Nov 22, 2024
1 parent e74bc8d commit a3f033e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/voice_assistant/voice_assistant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,8 @@ void VoiceAssistant::request_stop() {
this->desired_state_ = State::IDLE;
break;
case State::AWAITING_RESPONSE:
this->signal_stop_();
break;
case State::STREAMING_RESPONSE:
case State::RESPONSE_FINISHED:
break; // Let the incoming audio stream finish then it will go to idle.
Expand Down

0 comments on commit a3f033e

Please sign in to comment.