I updated to 2022.4 recently and can no longer get TTS audio to work on Chromecast devices or other media players. I’ve tried using cloud_tts (Nabu Casa) and google_tts, neither one works. Sometimes I get the chromecast chime on the cast enabled speakers, but no audio. I used to work until a few weeks ago (but I can’t put a date on the last time I used TTS successfully in my instance). I also tried playing a local audio file with no success. I keep seeing this error in the logs:
Logger: homeassistant.core
Source: components/cast/media_player.py:659
First occurred: 9:29:47 PM (3 occurrences)
Last logged: 9:40:04 PM
Error executing service: <ServiceCall media_player.play_media (c:2929b16e5f6858246335cc31200b20ef): device_id=['cd55b6ee17d311ebb6e59b95cec545f0'], extra=, media_type=music, media_id=http://192.168.0.199:8123/local/medicine.mp3>
Error executing service: <ServiceCall media_player.play_media (c:3e196515605d878cba13fd65a1578da3): entity_id=['media_player.dining_room_speaker_2'], extra=, media_type=audio/mpeg, media_id=media-source://media_source/media/local/medicine.mp3>
Error executing service: <ServiceCall media_player.play_media (c:967ebcfa5d77b14df17c25bab8150d58): entity_id=['media_player.dining_room_speaker_2'], extra=, media_type=music, media_id=http://192.168.0.199:8123/api/tts_proxy/35ee8386410d41d14b3f779fc95f4695f4851682_en_-_google_translate.mp3>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1652, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1671, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 677, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 955, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 714, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 659, in async_play_media
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/pychromecast/quick_play.py", line 77, in quick_play
controller.quick_play(**data)
File "/usr/local/lib/python3.9/site-packages/pychromecast/controllers/media.py", line 506, in quick_play
raise PyChromecastError()
pychromecast.error.PyChromecastError
Can’t really figure out what’s going on or how to fix it. The speaker itself works if I cast spotify or something else to it. I have tried it with three different smart speakers and a couple of fully kiosk tablets as well. Fails on all of them.
Thanks!