Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop TTS Response #162

Merged
merged 4 commits into from
Oct 17, 2024
Merged

Stop TTS Response #162

merged 4 commits into from
Oct 17, 2024

Conversation

jlpouffier
Copy link
Contributor

@jlpouffier jlpouffier commented Oct 17, 2024

4 things happening in this PR

1. You can stop TTS with the stop word

The stop word is activated only after 1 second as per Mike's recommendation to avoid messing with AEC.

2. I finally fixed the error state

When the voice assistant encounters an error, we want to display a temporary error state for 1 second.

I was doing this on_error but the voice assistant ends almost instantaneously after on_error.
So the error state was never really displayed.

Now the 1s delay is handled correctly.

3. Saying a wake word when the TTS is playing back does not start the pipeline anymore.

That was kind of a hack.
Since we did not have a stop word, when the media player was announcing, and micro_wake_word was triggered, I stopped the announcement and started a new pipeline.

Now that we have a stop word, I decided to simplify this part.
If the media player is announcing, and micro_wake_word is triggered - I stop the announcement and that is it.

So long TTS response >>> stop >>> TTS stops. (And that's it - Nothing restarts)

4. I reworked ever so slightly the Timer Tick effect

I did not like the hack I put in place for when the LED ring was full.
Now, one LED dips in brightness for the whole duration of the timer (in a rotating manner)
Because it happens the whole duration of the timer, the brightness dip is more subtle, barely noticeable

Copy link

Firmware built successfully! 🎉

Download and extract the firmware to install with https://web.esphome.io

Make sure to choose home-assistant-voice-esp32s3.factory.bin.

Copy link

Firmware built successfully! 🎉

Download and extract the firmware to install with https://web.esphome.io

Make sure to choose home-assistant-voice-esp32s3.factory.bin.

Copy link

Firmware built successfully! 🎉

Download and extract the firmware to install with https://web.esphome.io

Make sure to choose home-assistant-voice-esp32s3.factory.bin.

@jlpouffier jlpouffier merged commit b0fd114 into dev Oct 17, 2024
7 checks passed
@jlpouffier jlpouffier deleted the stop_tts_response branch October 17, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant