-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Sonos media.player TTS announcement "echos" when targeting two speakers #93136
Comments
Hey there @cgtobi, @jjlawren, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) sonos documentation |
Yes, similar to the example of passing the service: media_player.play_media
target:
entity_id: media_player.sonos
data:
announce: false
media_content_id: >
media-source://tts/google_translate?message="I am not using announce"
media_content_type: "music" |
Seems to be a lot of issues getting opened, and closed, around this. It appears to be a much larger breaking change than was originally identified since previous functionality behaves differently and breaks what was working, including the original (old) published Sonos examples. I did a lot of trial and error having the same problems with it either only targeting one member of the Sonos group, or if targeting all members of the group individually the audio being out of sync (ignoring the group). the two conclusions I came to are:
I have some working examples here using the old method of Sonos snapshot, un-join, join, set volume, play TTS, Sonos restore. I was hopeful the announce function would simplify that, but the out of sync audio is just too much to handle. |
You're describing how all The benefits of the new announce behavior:
The downsides:
The downsides are limitations in the new API and workarounds are not likely. Unless Sonos improves this API or provides a new one, you'll need to decide which behaviors are more important to you. |
I think the problem stems from that using So even in 2023.5 and not calling Example:
This will only play the message on To mimic the same (synced audio to a group) behavior you can no longer use the There was a change to how the functionality behaves, I'm just highlighting what needs to happen to get it like for like (synced audio to a group) how it worked prior to 2023.5. |
You're correct. The |
Thank you for this! I was able to get my automations to play TTS in sync through my grouped Sonos speakers with this. What is syntax for the media-source://tts if I wanted to use Piper instead? I tried the following options, but TTS didn't work:
UPDATE: Must have just need a few minutes to figure itself out. I was able to get it to work with:
|
The problem
I know there has been an update in core for this integration that allows the music to not be stopped during an announcement. The side effect is that TTS audio no longer plays to the Sonos grouped speakers; only the targeted speaker.
The main issue I am having is that when I manually add other target Sonos speakers, the audio does not playback at the same time in sync and gives a very unpleasant "echo" effect. Its not a true echo, but rather the fact that the TTS audio does not play in sync like the used to when it honored Sonos groups.
Is there anyway around this and/or could there be additional features added to allow TTS audio to play via the old group feature? The echo effect is so bad it makes understanding the TTS message difficult.
What version of Home Assistant Core has the issue?
core-2023.5.3
What was the last working version of Home Assistant Core?
core-2023.4.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sonos
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sonos/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
Using Sonos One SL speakers if it matters.
The text was updated successfully, but these errors were encountered: