Chromecast tts not working or intermittent

I started having issues with Google tts to Google home devices. This always worked and suddenly the past few months it stops working.

Sometimes the device is not found but the second command to then stream music to it, does work…

I’ve also noticed that the Google grouping speakers function makes it stop streaming after 30 seconds. Doesn’t matter what the source is. I can still see the progress bar moving in Spotify but no sound is coming from the speakers…

I’m using a unifi wifi, switching and router setup (usg3, acpro and 48poe) already disabled all the advanced features and all the devices are in the same flat network.

Any suggestions?

Logger: pychromecast.controllers
Source: /usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py:544
First occurred: 16 februari 2023 om 21:38:41 (21 occurrences)
Last logged: 08:52:33

Quick Play failed for http://192.168.........3/api/hls/823fc4cb15cea5302c90a5ffd7dfe6967bb32e81375ca66ceda06c053b964962/master_playlist.m3u8?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkZjk0MzljN2FhMTM0ZTM2OWY5MTcxMzZmNWFhMmMxOCIsInBhdGgiOiIvYXBpL2hscy84MjNmYzRjYjE1Y2VhNTMwMmM5MGE1ZmZkN2RmZTY5NjdiYjMyZTgxMzc1Y2E2NmNlZGEwNmMwNTNiOTY0OTYyL21hc3Rlcl9wbGF5bGlzdC5tM3U4IiwicGFyYW1zIjp7fSwiaWF0IjoxNjc3MDc0MDg3LCJleHAiOjE2NzcxNjA0ODd9.3JwO2YizRwxRRyTng34lpAVFTOX4jJhwc5Llz-_0kpg:application/vnd.apple.mpegurl({'stream_type': 'LIVE', 'media_info': {'hlsVideoSegmentFormat': 'fmp4'}})
Quick Play failed for http://192.......8123/api/tts_proxy/604312a031132eb59af1e41be7f666edad680d14_nl_-_google_translate.mp3:audio/mpeg({})
Quick Play failed for http://192......:8123/api/tts_proxy/504e5818a6b489833dfea064e9ca8bb5dcf37f90_nl_-_google_translate.mp3:audio/mpeg({})
Quick Play failed for http://192 ......:8123/api/hls/a45c0a5f9524e3bb743fbec0d2d2180dfd64c57965539cd8a6c4263665eb1a9e/master_playlist.m3u8?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJkZjk0MzljN2FhMTM0ZTM2OWY5MTcxMzZmNWFhMmMxOCIsInBhdGgiOiIvYXBpL2hscy9hNDVjMGE1Zjk1MjRlM2JiNzQzZmJlYzBkMmQyMTgwZGZkNjRjNTc5NjU1MzljZDhhNmM0MjYzNjY1ZWIxYTllL21hc3Rlcl9wbGF5bGlzdC5tM3U4IiwicGFyYW1zIjp7fSwiaWF0IjoxNjc3MjU5OTU4LCJleHAiOjE2NzczNDYzNTh9.pWUcQvJ3Qh_jkNvq_9iaxMsEWkb3CPREzrhG9BRqZ00:application/vnd.apple.mpegurl({'stream_type': 'LIVE', 'media_info': {'hlsVideoSegmentFormat': 'fmp4'}})
Quick Play failed for http://icecast.vrtcdn.be/mnm-high.mp3:music({'metadata': {'metadataType': 3, 'title': 'Music and More', 'artist': 'VRT MNM', 'images': [{'url': 'https://...../local/logomnm.webp'}]}})
Logger: homeassistant.core
Source: components/cast/media_player.py:751
First occurred: 16 februari 2023 om 21:38:41 (21 occurrences)
Last logged: 08:52:34

Error executing service: <ServiceCall media_player.play_media (c:01GT12BS2NQANKT9X7CQCFNZTH): entity_id=['media_player.nest_hub'], announce=True, extra=, media_type=music, media_id=media-source://tts/google_translate?message=Goeie+morgen,+ik+speel+MNM+af.&cache=true>
Error executing service: <ServiceCall media_player.play_media (c:01GT27QK7TK70AET0GAV7KJV38): entity_id=['media_player.nest_hub'], extra=, ......../api/hls/a45c0a5f9524e3bb743fbec0d2d2180dfd64c57965539cd8a6c4263665eb1a9e/master_playlist.m3u8>
Error executing service: <ServiceCall media_player.play_media (c:01GT2N21PSJJY5SBD9BMC8XSZR): entity_id=['media_player.nest_hub'], announce=True, extra=, media_type=music, media_id=media-source://tts/google_translate?message=tuin+lichten+uit&cache=true>
Error executing service: <ServiceCall media_player.play_media (c:01GT3P1SYKNSHVP5J0QMW73EQC): entity_id=['media_player.nest_hub'], announce=True, extra=, media_type=music, media_id=media-source://tts/google_translate?message=Goeie+morgen,+ik+speel+MNM+af.&cache=true>
Error executing service: <ServiceCall media_player.play_media (c:01GT3RY2H9CD0101CJKFVVKTS6): extra=metadata=metadataType=3, title=Music and More, artist=VRT MNM, images=[{'url': 'https:/...../local/logomnm.webp'}], entity_id=['media_player.google_speakers'], media_type=music, media_id=http://icecast.vrtcdn.be/mnm-high.mp3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1805, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 720, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 751, in async_play_media
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/pychromecast/quick_play.py", line 77, in quick_play
    controller.quick_play(**data)
  File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py", line 547, in quick_play
    raise PyChromecastError()
pychromecast.error.PyChromecastError
1 Like