Repository navigation
Play a sound when the mic re-opens for a follow-up question - #429
Conversation
When Home Assistant asks a follow-up question (continue_conversation) or starts a conversation itself (start_conversation), the satellite re-opened the microphone silently, leaving no cue that it was listening again. Play a sound at that point, configurable via --continue-conversation-sound (CONTINUE_CONVERSATION_SOUND in Docker/systemd). Defaults to the wake word sound; an empty string disables it.
|
If this will be implemented, it will be disabled by default since traditional satellite devices like the Voice PE don't do that with follow-up questions. So I think the best option for that is providing the switch that controls this from the dashboard, like the one for the thinking sound. |
Traditional satellites such as the Voice PE stay silent on follow-up questions, so the sound is now off by default. A "Follow-up Sound" config switch (like "Thinking Sound") turns it on; its state is kept in preferences. --continue-conversation-sound still picks the file.
Makes sense, thanks. It's now off by default and controlled by a "Follow-up Sound" config switch, same pattern as "Thinking Sound" (state saved in preferences). The CLI/env option only picks the sound file now. I've also updated the PR description. |
|
@ChrisB85 Do you think it really makes sense to use the same wakeup sound for the follow-up? Wouldn't it be better to use a different sound? |
I think it does. Both sounds mean the same thing, that the satellite has started listening, so using the same one shouldn't confuse anyone. It also matches what users already know from the wake word. And if someone prefers a different sound, --continue-conversation-sound lets them pick any file. |
This sound is usually used to play when the wake word is said; FYI, you can trigger the assistant by a button to start listening instead of saying the wake word, which will play a different sound. https://github.com/OHF-Voice/linux-voice-assistant/blob/main/docs/peripheral_api.md#voice-pipeline |
OK, got it, thanks. That's not my case, though: my satellites don't have a button. I won't insist on a particular default here. |
|
Also, I think that when the assistant asks a follow-up question, it's an enough cue that the satellite is listening. So why would we need that sound?! |
In my case it fixes two problems:
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
i think it should be default on. I think if he listens he also need to signal that. If the sound is to big, we can use a sound that is alike to the listen sound. I think only because the sound is missing in the Voice-PE doesnt mean that we can do it better. I can add a MR to the Voice-PE that they also add a sound there. Let me know what u think. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolve the conflicts, add --enable-continue-conversation-sound, use the pipeline start request of main for follow-ups, do not listen after a follow-up sound whose conversation was ended, and move docs and tests to their current places. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…default Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…switch in Home Assistant --enable-continue-conversation-sound takes 0 (default) or 1. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
I updated this PR and brought it up to date with What it does A short sound can be played when the satellite listens again in a continued conversation, so you can hear that it is waiting for your answer. Configuration
Behavior with the sound turned on
Open points
|
|
Tested this locally. All good. |
What does this implement/fix?
When Home Assistant asks a follow-up question (
continue_conversation), the satellite re-opens the microphone silently, so there is no cue that it is listening again. This PR can play a sound at that moment.--enable-continue-conversation-sound {0,1}(ENABLE_CONTINUE_CONVERSATION_SOUND, default0) turns it on. There is no switch in Home Assistant for now.--continue-conversation-sound(CONTINUE_CONVERSATION_SOUND) picks the file; defaults tosounds/wake_word_triggered.flac, the file of the default wake sound (a custom--wakeup-sounddoes not change it).--listen-during-wake-sound: without it, the mic opens only after the sound has finished, so the sound is not streamed back to Home Assistant.Original implementation by @ChrisB85, who reported running it on their satellites since August (before the latest changes). Brought up to date with
main.Known limitation (from reading the code, not reproduced): another sound on the assistant player during the continued conversation sound (timer ringing, a peripheral's button or volume sound) drops its end callback, so the conversation may stay active and block the wake word. The wake sound has the same weakness today.
No microphone or speaker test was done for the latest changes. The "tested locally" box below was ticked by the author for the earlier version.
Related issue (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocumentationmaintenancecidependenciesBreaking change migration
Behavior changes
docs/behavior.mdis updated accordingly.Behavior changes (if any):
--enable-continue-conversation-sound 1, a sound plays when the assistant listens again for a follow-up question, also after an announcement that starts a conversation.--listen-during-wake-sound, listening starts only after the sound has finished.--listen-during-wake-sound, stopping the sound or losing the connection while it plays ends the conversation without listening.--enable-continue-conversation-sound {0,1}(ENABLE_CONTINUE_CONVERSATION_SOUND), default0(off).--continue-conversation-sound(CONTINUE_CONVERSATION_SOUND), defaultsounds/wake_word_triggered.flac.End-to-end test changes
Added end-to-end tests (if any):
Changed end-to-end tests (if any):
Checklist
./script/lintpasses../script/testspasses, and tests have been added/updated undertests/where applicable.docs/behavior.mdmatches the code after this change.🤖 Generated with Claude Code