-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
2024.10.0 breaks text to speech #127518
Comments
Are you running Google Cast? You probably need to provide more information. There is a thread here with people experiencing similar issues: I see similar issue with the following in the logs: Not every time, works 50% of the times, compared to 100% before |
me and a bunch of others are using tts.google_cloud_say and it is broken since 2024.10.0, allso microsoft_tts seems to be broken. There are several comments about this issue in this thread -> https://community.home-assistant.io/t/2024-10-heading-in-the-right-direction/777864 Logger: homeassistant.components.tts Error on load tts: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_en-us_xxxdedxxxe_google_cloud not in cache! |
Can confirm for both Google Cloud TTS and Microsoft TTS. Error messages are not very descriptive, let me know if I can provide any additional data. Error on load tts: 04b3d12595b23216e9056c4dbd6edb0e73edb2bb_en-us_ba229ed5ca_microsoft not in cache! TTS does work when using Piper though. |
a Tiny solution: |
Interesting, thanks for this. My use case is the Voice Assistant from phone though, I don't think it is possible to set a delay there. |
Oke good luck
Verzonden vanaf Outlook voor Android<https://aka.ms/AAb9ysg>
…________________________________
From: Henrik Blåfield ***@***.***>
Sent: Friday, October 4, 2024 8:58:21 AM
To: home-assistant/core ***@***.***>
Cc: Vabis1010 ***@***.***>; Comment ***@***.***>
Subject: Re: [home-assistant/core] 2024.10.0 breaks text to speech (Issue #127518)
a Tiny solution: placing a100 milli second delay in your automation before the ttsaction wil solve your problemfor now. Not happy about it but it works a bit.
Interesting, thanks for this. My use case is the Voice Assistant from phone though, I don't think it is possible to set a delay there.
—
Reply to this email directly, view it on GitHub<#127518 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUUBXGQDQ73DX4DFZ3VU4WLZZY4A3AVCNFSM6AAAAABPK7ADKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSHE3DEMJVGY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
Can confirm this is still present in 2024.10.1, so not related to the Chromecast change which was indeed reverted in .1. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Well. looking at the error message mentioned above here (I've had the same) it has everything to do with casting to chromecast devices.
What would be the other issue? Would be good to provide some error message/log entry for it. |
The other issue is, Google Cloud TTS and Microsoft TTS stopped working after 2024.10.0. I don't even have a Chromecast right now active. The error is repeated for example when using Voice Assist through browser, mobile app etc. These are the log entries, as listed above as well. Error on load tts: 04b3d12595b23216e9056c4dbd6edb0e73edb2bb_en-us_ba229ed5ca_microsoft not in cache! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Yeah, I don't have a Chromecast either, only a dumb speaker connected to an old Raspberry Pi running 'PiCorePlayer' and 'Logitech Media Server', and because I've had so many issues historically with Google Cloud TTS, it's now always the first thing I check on an update. I didn't have 2024.10.0 on my system long enough (less than than 10 minutes) to do any real troubleshooting, I didn't even try and get log entries, sorry, but other peoples errors regarding the required speech data 'not being in cache' seem to tally with my system only being able to say something that had previously been cached. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I couldn't resist trying 2024.10.1, I'm just far too curious for my own good, but I put a bit more effort into it this time, yeah, it doesn't fix the google cloud tts caching problem, even calling it as a service (action, whatever) from developer tools, explicitly asking it to cache the data doesn't make any speech burst forth from my Pi powered crappy vintage speaker. I did observe that when it failed, when trying from the tts option in the media side menu thing, that it got stuck, no playback progress bar, and the play button just sat there taunting me, on 2024.9.3 doing the same, I get progress bar movement to completion, while the play button briefly changes to pause, then back again. I dunno if that helps anyone.
|
At least for Google TTS, the culprit is #125220. More details from debug consoleOld implementation> texttospeech.AudioEncoding[options[CONF_ENCODING]]
<AudioEncoding.MP3: 2> Implemented in PR> texttospeech.AudioEncoding(options[CONF_ENCODING])
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.12/enum.py", line 757, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/enum.py", line 1171, in __new__
raise ve_exc
ValueError: 'MP3' is not a valid AudioEncoding |
cc @cdce8p |
The problem
After upgrading all automations with tts stop speaking
What version of Home Assistant Core has the issue?
2024.10.0
What was the last working version of Home Assistant Core?
2024.9.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
I'm sure I'm not the only one experiencing this issue.
The text was updated successfully, but these errors were encountered: