core: Media playback suddenly stopped working

The problem

I’ve had the tts:speak service running for a long time with no issues at all. Then suddenly the other day - out of the blue - it stopped working. That is, I can hear the ‘blip’ in the speakers (I have several) when the volume is set, but the message is never played. I have several different automations sending messages to various speakers depending on different triggers. All was working well, but now none of them work anymore. Then I noticed that I cannot playback any media files (MP3) anymore, not just messages (which in essence are also mp3 files). I haven’t changed any network settings and I’ve double checked that both external and internal URL is good. I have deleted the TTS integration, rebooted and re-installed it, but to no avail.

What version of Home Assistant Core has the issue?

System Information version | core-2024.9.1 – | – installation_type | Home Assistant Container dev | false hassio | false docker | true user | root virtualenv | false python_version | 3.12.4 os_name | Linux os_version | 5.10.60-qnap arch | x86_64 timezone | Europe/Oslo config_dir | /config
Home Assistant Community Store GitHub API | ok – | – GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.1 Stage | running Available Repositories | 1471 Downloaded Repositories | 27
Home Assistant Cloud logged_in | false – | – can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 8 – | – resources | 14 views | 17 mode | storage
Recorder oldest_recorder_run | September 4, 2024 at 9:09 AM – | – current_recorder_run | September 8, 2024 at 10:38 PM estimated_db_size | 1823.38 MiB database_engine | mysql database_version | 11.4.2
Sonoff version | 3.8.0 (79ecd72) – | – cloud_online | 0 / 0 local_online | 1 / 1

What was the last working version of Home Assistant Core?

2024.8.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Google Translate Text-to-speech

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_translate

Diagnostics information

No response

Example YAML snippet

type: media-control
entity: media_player.living_room_speaker

Then I click on the "Browse Media" which takes me to the Cast overview where I can choose "My media" and "Text-to-speech" 
Both fail with the same error message.

Anything in the logs that might be useful for us?

Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:405
integration: Google Cast (documentation, issues)
First occurred: 11:10:32 PM (1 occurrences)
Last logged: 11:10:32 PM

Failed to cast media http://192.168.1.8:8123/api/tts_proxy/11533e3e7509eebb2eb61bde5afed2c021cc01e5_en_-_tts.google_translate_no_no.mp3 from internal_url (http://192.168.1.8:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 8
  • Comments: 49 (6 by maintainers)

Most upvoted comments

My Google Nest does not work when I want to play from Home Assistant, but it will play files via Music Assistant. For me this will be a temporary alternative as I am not using TTN

How did you link Text-to-speech to music assistant? I would also like to try this workaround until a permanent fix is available.

I removed the Nest Mini from Home Assistant and added it to Music Assistant. Using the “Music Assistant Integration” I can play anything on the Nest Mini again

Thanks for the tip! Does Music Assistant support text-to-speech? I rely on home assistant to announce events using my nest mini so I need text-to-speech support.

I tried and yes it works!

Idea is that TTS is just a program that changes text into an audio file. Home assistant just sends this audio file to a media player. Instead of sending it direct to the Nest Mini, we send it via the Music assistant.

I’m in the US and still having this issue. The mini chimes but nothing plays. I was able to get to the file via http://ip:port/api/tts_proxy/filename.mp3 which does have the message that I requested. I checked in the Home app and the Cast Firmware for the mini I have is at 3.73.429109. Could anyone that is working confirm your cast firmware?

I began creating some automations with this and it has never worked, but I started last week. I am hoping this is my only issue.

UPDATE: I figured out my issue. My local environment had a separate DNS system and so my local network setting for Home Assistant was set to http://ha.local:8123. After changing that to the IP address, the Mini has no issue playing back my message!

Comment, would it be possible to have in the Google Translate text-to-speech or Google Cast Integration to specify for it the local IP address? I am not sure I really like that as it splits the location of where that could be set, but it is nice that I could utilize my local DNS naming somehow still for Home Assistant.

My nest mini suddenly starts working after staying broken for 1 day. I didn’t do anything other than installing the music assistant to my HA instance and I haven’t even started using it. All of sudden, the speaker starts working again. Not sure why, but maybe the nest side bug has been fixed?

Same issue here. I try using TTS and there is no speech but there is a beep on the google home mini. Funnily enough I have 3 minis and the other two work.

Hello Same here, 2 Home minis stooped working with legacy TTS in configuration file since 9.1 Went to migrate to new TTS, also did not work. The minis chime as usual, but dont say the text. The logs say the same as above, Failed to cast media http://xxx/ … Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address The external url works, the internal also, i even added a local DNS rewrite with SSL to try to get it to work, this also works, the link the log generates, if i open it in chrome the file plays ok. Any news are welcome.

I’m having the same issue starting from this morning. Note that I have 3 Nest Mini and 1 Home Mini. Only one Nest Mini has this issue. I have reset the Nest Mini but am still able to reproduce this issue.

Note that I’ve tested casting a public url (http://stream.tilos.hu:8000/tilos) to the broken Nest Mini, and this url works. So I suspect the issue is related to Nest Mini unable to access local urls in LAN, though all my other devices can access it.