Hi @Nimrod_Dolev,
I am not sure what is wrong. However, when I run the following code, the only thing that is played through the speakers is the chime.
Hi @kaizersoje. There doesn’t seem to be anything wrong with your YAML and the fact that you can hear the chime means there’s no issues with playing media.
My guess is that perhaps you have not added the Google Translate service to your Home Assistant instance. Please check your configuration.yaml file for the TTS domain, and make sure to add Google Translate:
Hi @ColtonYYZ, regarding using Chime TTS with your Alexa speakers: I just released a new beta version, v0.8.0-beta1, which includes a new service: chime_tts.say_url.
This new service returns an external URL to the MP3 file generated by chime_tts.say which you can use with your Alexa speakers.
chime_tts.say_url accepts the same data as chime_tts.say (just without any media_player-specific data).
I have not been able to test it (as I don’t have any Alexa speakers) but you can refer to the following YAML example:
sequence:
- service: chime_tts.say_url
data:
chime_path: mp3_path_placeholder-bells_2
tts_platform: google_translate
message: This is a Chime TTS test on Alexa speakers
language: en
response_variable: chime_tts
- service: notify.alexa_media
data:
message: |
<audio src='{{chime_tts.url}}'/>
target:
- media_player.echo_show
- media_player.echo_plus
- media_player.bathroom_echo
- media_player.bedroom_echo
data:
type: tts
It would be great if you could please upgrade to the beta version and report back if its working for you.
I test it. but my Alexa Echo Dot response the message with the Simon Error.
The URL i add is reachable via Browser and plays direct without download. i will test again and again.
Hi @Homealone3000, unfortunately I don’t have any Alexa speakers so I can’t troubleshoot on an actual device.
To test whether the issue is with the Alexa speaker or Chime TTS/Home Assistant you could try playing a different mp3 URL, from another site. If it plays successfully then either Chime TTS may indeed be the issue, or there could be a networking issue such as an SSL issue with the Alexa speaker.
Perhaps another Chime TTS user with an Alexa speaker could share from their experience?
Is there any reason why an action to play a sound and speak would just stop working–even if I manually execute it? I notice files in the temp folder that aren’t getting deleted. Is that expected?
Hi @Nimrod_Dolev. Generally the chime action plays the sound and TTS. However it seems at some point it just stops working. I restart HA and it works again. I haven’t spent much time digging in but was just checking if any known issue. The automation does get triggered in every case. It’s just that the chime action seems to freeze/time out (but no sound or TTS). Once it happens, it doesn’t appear to ever work again (even if I “test” the action itself). It’s playing to a sonos speaker, which I don’t believe is an issue.
@Nimrod_Dolev , Seems the queue gets backed up and then times out. Queue never clears I guess. Not sure why the queue isn’t processed and then why it never clears.
Is there a way to view the queue or clear it?
2023-12-02 21:06:39.888 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.9.0 -----
2023-12-02 21:06:39.888 DEBUG (MainThread) [custom_components.chime_tts] Service call #14 was added to the queue.
2023-12-02 21:06:39.889 DEBUG (MainThread) [custom_components.chime_tts] ...waiting for 4 previous queued jobs to complete.
2023-12-02 21:07:42.431 ERROR (MainThread) [custom_components.chime_tts] Timeout reached on queued job #14.
2023-12-02 21:07:42.432 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2023-12-02 21:07:42.433 DEBUG (MainThread) [custom_components.chime_tts] Incrementing to next queued service call.
After reloading Chime TTS the same test worked (as it had been until it stopped):
It’s not clear to me why the queue gets stuck.
There doesn’t seem to be any issue with the media/camera/4.mp3 media file (based on the debug logs, Chime TTS finds the file).
Unfortunately the logs you included don’t include all chime_tts.say service calls (most notably the call which failed/caused the queue to get stuck) so I can’t tell what caused the issue.
Please recreate the problem and send the full debug logs
Hey @jazzmonger, as i’ve written here a few times - I don’t own an echo speaker so unfortunately I can’t debug this issue. Perhaps other Chime TTS users with echo speakers could give some pointers?
The log error: Error calling tts.media_source.generate_media_source_id: Invalid TTS provider selected
suggests that the Amazon Polly TTS service is not configured correctly on your Home Assistant instance. Please call the chime_tts.say_url service with Amazon Polly as the TTS platform to see if the issue is with Amazon Polly or with the Echo speaker.
I just came across this and I’d like to use chime_tts for my Alerts. But for Alerts you have to set up a Notifier and I’m struggling to see how to set this up or if indeed that is even possible. Has anyone done this ? Is it possible?