core: Latency regression in Google Cast from 2021.12
The problem
Casting TTS or media to a Google Nest Hub speaker in 2021.12 results in up to 4 seconds of latency, up from less than 1s in 2021.11.
What version of Home Assistant Core has the issue?
2021.12
What was the last working version of Home Assistant Core?
core-2021.11
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
(Google) Cast
Link to integration documentation on our website
https://www.home-assistant.io/integrations/cast/
Example YAML snippet
# Example 1
service: tts.google_say
data:
entity_id: media_player.living_room_hub # Nest Home Hub
message: test
# Example 2
service: media_player.play_media
target:
entity_id: media_player.living_room_hub
data:
media_content_id: https://<my server>/local/audio/sensor_on.mp3
media_content_type: audio/mp3
Anything in the logs that might be useful for us?
No response
Additional information
The latency occurs with both tts.google_say and media_player.play_media suggesting the issue is with the Google cast media player. 2021.12 release notes also mention significant changes in the Google cast integration which has the potential to introduce regressions.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 26 (17 by maintainers)
I have 2 Google Cast Devices, a google home and a home mini. I had an automation to always keep them on because I use to play tts on events. I can see that after the latest updates, the cast devices no longer turn on. I also try manually calling media_player.turn_on on google cast entities, they do not work anymore.