Chime TTS - Play audio before/after TTS audio lag free

Hi @ColtonYYZ, thanks for your reply, I can’t write a full response to you at the moment but I will once I can.

1 Like

Hi @Diegocampy
The issue might be simply that you need to first configure the TTS platform you wish to use separately in your Hime Assistsnt instance.

1 Like

I noticed in the PicoTTS page, it says the audio output must be wav. Chime_TTS output is mp3. So maybe this is the reason for the weird saying the girl is saying.

For use with pick TTS you can use the chime_tts.say_url service with the Audio Convert field to set FFmpeg conversion parameters to output a WAV file instead of MP3

Yes, I think that’s the problem, in fact I had enabled Pico, just for proof. I have to find the best service. Nobody allows me to restart the music at the end of the message.Not even using Chime TTS with Google Translate as a TTS service works. Everything works, initial bells, finals, but nothing, the music does not start again. Thanks to everyone for the support

@Diegocampy It should resume whatever music you were listening to. Did you include the announce function as enabled?

You have to checkmark the box AND toggle the switch to enable it. Not sure if you noticed that or not. I included it in your sample code.

Here it is:

announce: true

Yes, but not with edge tts. I was try only with pico and google translate. After I will try with edge tts. Thank you

unfortunately same problem with Chime :frowning: i try this code:

service: chime_tts.say
data:
  delay: 450
  tts_platform: edge_tts
  language: it-IT
  announce: true
  message: Prova messaggio con chime
  chime_path: chirp
  join_players: true
  unjoin_players: true
target:
  device_id:
    - 65e2cbfb2535713407925025e26c273b

The problem is the same, music not restart.
to be more precise, I tried listening to music simultaneously from 4 devices with spotify via google home, and when I send the message the music stops on the device used, on the other devices it continues to play, but when the message ends the music does not resume from that device.
I think my problem starts first, something about the home assistant not configured correctly perhaps. With Assistant_SDK I can but it is not selectable here

@Diegocampy Sorry! I wish I had a Google Home so I could troubleshoot better for you. :cry:

1 Like

don’t worry, you have already been too kind and helpful in trying to give me a hand. Thank you very much for your patience and time dedicated to me.

I can just say that I’m having the same issue with Google translate, it’s all properly configured an working with or without chimeTTS, just the resume function is not working. Will try with edge_TTS, but I think it’s just a workaround anyways.

1 Like

Addressing the issues of resuming audio after a notification is not really within the scope of Chime TTS, as it is an issue at the level of how the smart speaker is integrated into Home Assistant.

The chime_tts.say service should work perfectly with speakers that have good support for resuming audio, but for those that don’t it can be quite the headache.

The main reason for adding the chime_tts.say_url service is to provide a public URL to the generated audio as there are several workarounds for specific smart speakers that can play media files from a path, and then resume the previous playback.

If any of you are able to test these workarounds and can share what is needed to be done I would be happy to try to integrate the steps into a future version of Chime TTS so that the process is as seamless as possible :+1:

1 Like

I don’t see anywhere in documentation that gives a ranking of speakers that work and those that are problematic, could you point me to this or perhaps add your experience rating to your documentation at GitHub? Thx.

The chime_tts.say service uses Home Assistant’s native media_player.play_media service - so if a smart speaker’s integration supports resuming playback in Home Assistant it will work with Chime TTS.

I don’t have a list detailing which smart speakers work best, but other users in this forum post but mainly across other posts have commented on their experiences regarding resuming audio.

I know from my own experience that the Apple TV integration, which provides support for Apple’s HomePods as media player devices, does not properly support the announce parameter to resume playback.

Other users in this forum post have discussed the Sonos integration and have had better luck resuming audio.

I thought so too and I agree, what I don’t understand is that with the Assistant SDK integration, always using the same google home, integrated in the same way, this works.
I don’t understand why, and unfortunately this integration allows few customizations, and precedes the announcement with a notice “Announcement coming soon, says:”

My mp3’s aren’t working now. I did the update that just got pushed out. But now none of the mp3’s I have in a folder are playing. I didn’t make any changes to my config or anywhere else for that matter. Did the new update break something?

2024-01-06 13:00:00.250 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 13:00:00.251 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 13:00:00.251 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.apartment_door_echo_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = 
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * cache = True
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 50.0
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * message = Hey Colton, someone's at the door!
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = amazon_polly
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 115.0
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 13:00:00.255 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = 0.9
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = True
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = True
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts] Attempting to retrieve generated mp3 file from cache
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts]  - async_get_cached_audio_data('328e72a98ddded104129c07f8b59dafcaecab8adf9ef3616750c96f9a3f7b59b')
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving key/value from chime_tts storage:
2024-01-06 13:00:00.256 DEBUG (MainThread) [custom_components.chime_tts]    - key: 328e72a98ddded104129c07f8b59dafcaecab8adf9ef3616750c96f9a3f7b59b
2024-01-06 13:00:00.257 DEBUG (MainThread) [custom_components.chime_tts]    - value: {'audio_path': '/media/sounds/temp/chime_tts/oh83png7.mp3', 'audio_duration': 1.899}
2024-01-06 13:00:00.257 DEBUG (MainThread) [custom_components.chime_tts]  - Cached audio data found
2024-01-06 13:00:00.258 DEBUG (MainThread) [custom_components.chime_tts] Using previously generated mp3 saved in cache
2024-01-06 13:00:00.258 DEBUG (MainThread) [custom_components.chime_tts]   - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/oh83png7.mp3', 'audio_duration': 1.899}
2024-01-06 13:00:00.258 WARNING (MainThread) [custom_components.chime_tts] Unable to join speakers. No supported media_players found.
2024-01-06 13:00:00.258 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.apartment_door_echo_amz' volume level to 0.9
2024-01-06 13:00:00.258 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.apartment_door_echo_amz", 0.9)
2024-01-06 13:00:00.258 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:00.259 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.kitchen_echo_plus_amz' volume level to 0.9
2024-01-06 13:00:00.259 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_echo_plus_amz", 0.9)
2024-01-06 13:00:00.259 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:00.259 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.colton_s_echo_show' volume level to 0.9
2024-01-06 13:00:00.259 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.colton_s_echo_show", 0.9)
2024-01-06 13:00:00.260 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:00.260 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.bathroom_echo_amz' volume level to 0.9
2024-01-06 13:00:00.260 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.bathroom_echo_amz", 0.9)
2024-01-06 13:00:00.260 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:00.260 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 13:00:00.260 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2024-01-06 13:00:00.261 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/oh83png7.mp3
2024-01-06 13:00:00.261 DEBUG (MainThread) [custom_components.chime_tts]  - announce: True
2024-01-06 13:00:00.261 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: ['media_player.apartment_door_echo_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 13:00:00.272 DEBUG (MainThread) [custom_components.chime_tts] ...media_player.play_media completed.
2024-01-06 13:00:00.272 DEBUG (MainThread) [custom_components.chime_tts] Waiting 1.899s for audio playback to complete...
2024-01-06 13:00:02.173 DEBUG (MainThread) [custom_components.chime_tts] Waiting 0.9s for final_delay to complete...
2024-01-06 13:00:03.074 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.apartment_door_echo_amz's volume level to 0.9
2024-01-06 13:00:03.074 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.apartment_door_echo_amz", 0.9)
2024-01-06 13:00:03.074 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:03.074 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.kitchen_echo_plus_amz's volume level to 0.9
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_echo_plus_amz", 0.9)
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.colton_s_echo_show's volume level to 0.9
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.colton_s_echo_show", 0.9)
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.bathroom_echo_amz's volume level to 0.9
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.bathroom_echo_amz", 0.9)
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts]  - Skipped setting volume
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 2822.806 ms -----
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 13:00:03.075 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
2024-01-06 13:00:03.076 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 13:00:03.076 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 13:00:03.077 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.couch_echo_right_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show']
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = 
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * cache = True
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 200.0
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * message =   
2024-01-06 13:00:03.081 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = amazon_polly
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 115.0
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = 0.4
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = True
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = True
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts] Attempting to retrieve generated mp3 file from cache
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  - async_get_cached_audio_data('5dc12aa3eee8b72714bdac8b2ac8e4286fb384f0865eb1bdc35b125c681e39aa')
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  - Audio data not found in cache.
2024-01-06 13:00:03.082 DEBUG (MainThread) [custom_components.chime_tts]  - filepath_hash 5dc12aa3eee8b72714bdac8b2ac8e4286fb384f0865eb1bdc35b125c681e39aa does not exist in the cache.
2024-01-06 13:00:03.083 DEBUG (MainThread) [custom_components.chime_tts]  - No previously generated mp3 file found
2024-01-06 13:00:03.083 DEBUG (MainThread) [custom_components.chime_tts] Invalid audio filepath provided
2024-01-06 13:00:03.083 ERROR (MainThread) [custom_components.chime_tts.helpers] Error parsing message parameter
2024-01-06 13:00:03.083 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 13:00:03.084 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
2024-01-06 13:00:03.085 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 13:00:03.085 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 13:00:03.085 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.couch_echo_right_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show']
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = custom_components/chime_tts/mp3s/drumroll.mp3
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 450.0
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * message = 
2024-01-06 13:00:03.090 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = google_translate
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 100.0
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = -1.0
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = True
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = True
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/drumroll.mp3", 0, audio)
2024-01-06 13:00:03.091 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "custom_components/chime_tts/mp3s/drumroll.mp3"...
2024-01-06 13:00:03.190 DEBUG (MainThread) [custom_components.chime_tts]  - ...retrieved successfully. Audio duration: 1.992s
2024-01-06 13:00:03.190 DEBUG (MainThread) [custom_components.chime_tts]  - Final audio created. Duration: 1.992s
2024-01-06 13:00:03.190 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file...
2024-01-06 13:00:03.190 DEBUG (MainThread) [custom_components.chime_tts]   - Audio folder exists: /media/sounds/temp/chime_tts/
2024-01-06 13:00:03.260 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]   - ...FFmpeg audio conversion completed.
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]   - Filepath = '/media/sounds/temp/chime_tts/l0ir5ont.mp3'
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]   - File saved successfully
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]   - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/l0ir5ont.mp3', 'audio_duration': 1.992}
2024-01-06 13:00:03.316 WARNING (MainThread) [custom_components.chime_tts] Unable to join speakers. No supported media_players found.
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/l0ir5ont.mp3
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]  - announce: True
2024-01-06 13:00:03.316 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: ['media_player.couch_echo_right_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show']
2024-01-06 13:00:03.332 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 13:00:03.332 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 2/3
2024-01-06 13:00:03.344 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 13:00:03.345 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 3/3
2024-01-06 13:00:03.356 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 13:00:03.356 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 269.69300000000004 ms -----
2024-01-06 13:00:03.357 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 13:00:03.357 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.

Hi @ColtonYYZ.

In your log you called the chime_tts.say service 3 times. Just so we’re on the same page, please confirm that this was your experience:

  • Call #1 - A previously cached audio file was reused, and played correctly.
  • Call #2 - No chimes or message string were included in the call, so no audio should have played - unless i’m missing something?
  • Call #3 - It looks like the generated file wasn’t found.
    Was the /media/sounds/temp/chime_tts/l0ir5ont.mp3 file saved on your system?
    Can you please try to restart the integration, call the service again with the same parameters and see if it works successfully?

No chime plays at all (mp3 or chime). It was saying the message “Hey Colton, someone’s at the door!”

I just restarted HAss and ran the automation, and nothing audio came out of the speakers. No chime, no mp3. And now no message.

When I check /media/sounds/temp/chime_tts/ there are no temp files in the folder.

2024-01-06 15:15:49.730 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 15:15:49.730 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 15:15:49.730 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 15:15:49.735 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 15:15:49.735 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.kitchen_echo_plus_amz', 'media_player.couch_echo_right_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 15:15:49.735 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = /config/www/sounds/female_saying_did_you_hear_that.mp3
2024-01-06 15:15:49.735 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 15:15:49.735 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 50.0
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * message =   
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = amazon_polly
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 115.0
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = -1.0
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = False
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = False
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 15:15:49.736 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("/config/www/sounds/female_saying_did_you_hear_that.mp3", 0, audio)
2024-01-06 15:15:49.737 DEBUG (MainThread) [custom_components.chime_tts.helpers] File not found at path: /config/www/sounds/female_saying_did_you_hear_that.mp3
2024-01-06 15:15:49.737 DEBUG (MainThread) [custom_components.chime_tts.helpers] File not found at path: /www/sounds/female_saying_did_you_hear_that.mp3
2024-01-06 15:15:49.737 WARNING (MainThread) [custom_components.chime_tts] Unable to find audio file None
2024-01-06 15:15:49.737 ERROR (MainThread) [custom_components.chime_tts.helpers] Error parsing message parameter
2024-01-06 15:15:49.738 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 15:15:49.738 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
2024-01-06 15:15:49.740 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 15:15:49.740 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 15:15:49.740 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.colton_s_echo_show', 'media_player.apartment_door_echo_amz']
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = 
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 50.0
2024-01-06 15:15:49.744 DEBUG (MainThread) [custom_components.chime_tts]  * message = Hey Colton, someone's at the door!
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = amazon_polly
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 115.0
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = 0.9
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = False
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = False
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 15:15:49.745 DEBUG (MainThread) [custom_components.chime_tts] Invalid audio filepath provided
2024-01-06 15:15:49.746 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='amazon_polly', message='Hey Colton, someone's at the door!', tts_playback_speed=115.0, cache=False, language=None, options={})
2024-01-06 15:15:49.746 DEBUG (MainThread) [custom_components.chime_tts]  - Generating TTS audio...
2024-01-06 15:15:49.845 DEBUG (MainThread) [custom_components.chime_tts]  -  ...changing TTS playback speed to 115.0 percent
2024-01-06 15:15:49.851 DEBUG (MainThread) [custom_components.chime_tts]  - ...TTS audio completed in 105.402 ms
2024-01-06 15:15:49.851 DEBUG (MainThread) [custom_components.chime_tts]  - Final audio created. Duration: 1.899s
2024-01-06 15:15:49.851 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file...
2024-01-06 15:15:49.851 DEBUG (MainThread) [custom_components.chime_tts]   - Audio folder exists: /media/sounds/temp/chime_tts/
2024-01-06 15:15:49.907 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]   - ...FFmpeg audio conversion completed.
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]   - Filepath = '/media/sounds/temp/chime_tts/fyutx_04.mp3'
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]   - File saved successfully
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]   - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/fyutx_04.mp3', 'audio_duration': 1.899}
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.kitchen_echo_plus_amz' volume level to 0.9
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_echo_plus_amz", 0.9)
2024-01-06 15:15:49.962 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.kitchen_echo_plus_amz" to: 0.9
2024-01-06 15:15:49.963 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:49.963 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.bathroom_echo_amz' volume level to 0.9
2024-01-06 15:15:49.963 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.bathroom_echo_amz", 0.9)
2024-01-06 15:15:49.963 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.bathroom_echo_amz" to: 0.9
2024-01-06 15:15:49.964 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:49.964 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.colton_s_echo_show' volume level to 0.9
2024-01-06 15:15:49.964 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.colton_s_echo_show", 0.9)
2024-01-06 15:15:49.964 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.colton_s_echo_show" to: 0.9
2024-01-06 15:15:49.965 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.apartment_door_echo_amz' volume level to 0.9
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.apartment_door_echo_amz", 0.9)
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.apartment_door_echo_amz" to: 0.9
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/fyutx_04.mp3
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - announce: True
2024-01-06 15:15:49.966 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: ['media_player.kitchen_echo_plus_amz', 'media_player.bathroom_echo_amz', 'media_player.colton_s_echo_show', 'media_player.apartment_door_echo_amz']
2024-01-06 15:15:49.981 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:49.981 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 2/3
2024-01-06 15:15:49.989 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:49.989 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 3/3
2024-01-06 15:15:49.998 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:49.998 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 256.229 ms -----
2024-01-06 15:15:49.998 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 15:15:49.998 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
2024-01-06 15:15:49.998 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 15:15:49.998 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 15:15:49.998 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.kitchen_echo_plus_amz', 'media_player.couch_echo_right_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = custom_components/chime_tts/mp3s/chirp.mp3
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 200.0
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * message =   
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = amazon_polly
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 115.0
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = 0.4
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = False
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = False
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/chirp.mp3", 0, audio)
2024-01-06 15:15:50.000 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "custom_components/chime_tts/mp3s/chirp.mp3"...
2024-01-06 15:15:50.081 DEBUG (MainThread) [custom_components.chime_tts]  - ...retrieved successfully. Audio duration: 0.395s
2024-01-06 15:15:50.081 ERROR (MainThread) [custom_components.chime_tts.helpers] Error parsing message parameter
2024-01-06 15:15:50.081 DEBUG (MainThread) [custom_components.chime_tts]  - Final audio created. Duration: 0.395s
2024-01-06 15:15:50.081 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file...
2024-01-06 15:15:50.081 DEBUG (MainThread) [custom_components.chime_tts]   - Audio folder exists: /media/sounds/temp/chime_tts/
2024-01-06 15:15:50.136 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]   - ...FFmpeg audio conversion completed.
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]   - Filepath = '/media/sounds/temp/chime_tts/wx9_1drz.mp3'
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]   - File saved successfully
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]   - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/wx9_1drz.mp3', 'audio_duration': 0.395}
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.kitchen_echo_plus_amz' volume level to 0.4
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_echo_plus_amz", 0.4)
2024-01-06 15:15:50.184 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.kitchen_echo_plus_amz" to: 0.4
2024-01-06 15:15:50.186 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:50.186 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.couch_echo_right_amz' volume level to 0.4
2024-01-06 15:15:50.186 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.couch_echo_right_amz", 0.4)
2024-01-06 15:15:50.186 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.couch_echo_right_amz" to: 0.4
2024-01-06 15:15:50.187 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:50.187 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.couch_echo_left_amz' volume level to 0.4
2024-01-06 15:15:50.188 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.couch_echo_left_amz", 0.4)
2024-01-06 15:15:50.188 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.couch_echo_left_amz" to: 0.4
2024-01-06 15:15:50.191 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:50.191 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.apartment_door_echo_amz' volume level to 0.4
2024-01-06 15:15:50.191 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.apartment_door_echo_amz", 0.4)
2024-01-06 15:15:50.191 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.apartment_door_echo_amz" to: 0.4
2024-01-06 15:15:50.192 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:50.192 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.colton_s_echo_show' volume level to 0.4
2024-01-06 15:15:50.192 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.colton_s_echo_show", 0.4)
2024-01-06 15:15:50.192 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.colton_s_echo_show" to: 0.4
2024-01-06 15:15:50.193 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:50.193 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.bathroom_echo_amz' volume level to 0.4
2024-01-06 15:15:50.193 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.bathroom_echo_amz", 0.4)
2024-01-06 15:15:50.193 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.bathroom_echo_amz" to: 0.4
2024-01-06 15:15:50.194 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2024-01-06 15:15:50.194 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 15:15:50.194 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2024-01-06 15:15:50.194 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/wx9_1drz.mp3
2024-01-06 15:15:50.194 DEBUG (MainThread) [custom_components.chime_tts]  - announce: True
2024-01-06 15:15:50.194 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: ['media_player.kitchen_echo_plus_amz', 'media_player.couch_echo_right_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 15:15:50.212 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:50.212 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 2/3
2024-01-06 15:15:50.225 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:50.225 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 3/3
2024-01-06 15:15:50.237 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:50.237 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 238.37 ms -----
2024-01-06 15:15:50.237 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 15:15:50.237 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
2024-01-06 15:15:50.238 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.0 -----
2024-01-06 15:15:50.238 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 15:15:50.238 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.kitchen_echo_plus_amz', 'media_player.couch_echo_right_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = custom_components/chime_tts/mp3s/drumroll.mp3
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * end_chime_path = 
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 450.0
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * message = 
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = google_translate
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 100.0
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * announce = True
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = -1.0
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = False
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * unjoin_players = False
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts]  * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 15:15:50.239 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 15:15:50.240 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 15:15:50.240 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/drumroll.mp3", 0, audio)
2024-01-06 15:15:50.240 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "custom_components/chime_tts/mp3s/drumroll.mp3"...
2024-01-06 15:15:50.320 DEBUG (MainThread) [custom_components.chime_tts]  - ...retrieved successfully. Audio duration: 1.992s
2024-01-06 15:15:50.320 DEBUG (MainThread) [custom_components.chime_tts]  - Final audio created. Duration: 1.992s
2024-01-06 15:15:50.320 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file...
2024-01-06 15:15:50.320 DEBUG (MainThread) [custom_components.chime_tts]   - Audio folder exists: /media/sounds/temp/chime_tts/
2024-01-06 15:15:50.390 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]   - ...FFmpeg audio conversion completed.
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]   - Filepath = '/media/sounds/temp/chime_tts/tjasldkq.mp3'
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]   - File saved successfully
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]   - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/tjasldkq.mp3', 'audio_duration': 1.992}
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/tjasldkq.mp3
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]  - announce: True
2024-01-06 15:15:50.446 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: ['media_player.kitchen_echo_plus_amz', 'media_player.couch_echo_right_amz', 'media_player.couch_echo_left_amz', 'media_player.apartment_door_echo_amz', 'media_player.colton_s_echo_show', 'media_player.bathroom_echo_amz']
2024-01-06 15:15:50.461 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:50.461 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 2/3
2024-01-06 15:15:50.473 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:50.473 WARNING (MainThread) [custom_components.chime_tts] ...playback retry 3/3
2024-01-06 15:15:50.484 ERROR (MainThread) [custom_components.chime_tts] An unexpected error occurred when playing the audio: HTTP Error 404: Not Found
2024-01-06 15:15:50.484 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 245.995 ms -----
2024-01-06 15:15:50.485 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 15:15:50.485 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.


Hey @ColtonYYZ. I haven’t been able to reproduce your issue, but I might have an idea on what caused it. I just released a beta with a potential fix, v0.11.1-beta1.

Could you please upgrade and let me know if it fixes the issue? To install the new beta version:

  1. Open the Chime TTS repository in HACS
  2. Click on the button in the top right
  3. Select the ↻ Redownload option
  4. Enable the Show beta versions option
  5. Select version v0.11.1-beta1 from the updated version drop-down list

I’m going to upgrade to the beta and see if my behaviour still occurs - but this is what I am currently experiencing:

I am trying to create an alarm - this is what I have so far:

variables:
  media_player: media_player.livingroom_smart_display
  wfix: |-
    {%- set wt = {
      "partlycloudy": "Partly Cloudy",
      "clear-night": "Clear",
      "lightning-rainy": "Stormy",
      "snowy-rainy": "Sleeting",
      "windy-variant": "Windy with Rain"
      }
      -%}
  tod: |-
    {% if states('sensor.dhjm_sun_rising')|as_datetime > now() %}
      {% set tod = "Night" %}
    {% elif now().hour < 12 %}
      {% set tod = "Morning" %}
    {% elif now().hour < 18 and is_state('sun.sun','above_horizon') %}
      {% set tod = "Afternoon" %}
    {% elif now().hour < 21 and is_state('sun.sun','above_horizon') %}
      {% set tod = "Evening" %}
    {% else %}
      {% set tod = "Night" %}
    {% endif %} Good {{ tod }}
  weather: |-
    {%- set w = states('weather.weatherflow') %}
    and {{ wfix[w] if wfix[w] is defined else w }}. 
  temperature: >-
    It is currently {{
    state_attr('weather.weatherflow','temperature')|float|round }} degrees,
  forecast: >-
    {% set w = daily_weather['weather.weatherflow']['forecast'][0] %} {{
    wfix[w['condition']] if wfix[w['condition']] is defined else w['condition']
    }} with a high of {{ w['temperature']|int|round }} and a low of {{
    w['templow']|int|round }}
  calendar: >-
    {% set c = sched['calendar.andy_calendar']['events']|list|count %} {% if c >
    0 %}
      You have {{ c }} events today, and the first is {{ sched['calendar.andy_calendar']['events'][0]['summary'] }}
    {% else %}
      None
    {% endif %}
  alarm: test
service: chime_tts.say
metadata: {}
data:
  delay: 450
  final_delay: 250
  tts_playback_speed: 100
  message:
    - type: chime
      path: custom_chime_path_1
    - type: tts
      message: "{{ tod }} Andy!"
      cache: true
    - type: delay
      length: 450
    - type: tts
      message: "{{ temperature }}"
      cache: true
    - type: tts
      message: "{{ weather }}"
      cache: true
    - type: tts
      message: The forecast today is
      cache: true
    - type: tts
      message: "{{ forecast }}"
    - type: delay
      length: 2000
  tts_platform: tts.piper
target:
  entity_id: "{{ media_player }}"

Now the issue I am having, when I make a change to the message, the TTS is not actually being changed, this is especially the case when I have made an error in the Jinja and I’m basically causing an empty string to be returned as the variable, ChimeTTS really does not like it when the message is empty. Which is going to make this whole thing more complicated, because some of the things that will be said are going to be conditional - eg I don’t want “you don’t have any events today”, I’d much prefer that that the events part for just omitted completely.

Now if there is an error, when I track it down and fix it, and then try again, I just get the previous TTS still. Often it takes several retries before I get an updated TTS.

Further, and this is the part that confuses me significantly, the media player is a variable too, and if I change the media player, it often does not change to the new media player for several more runs of the script. That doesn’t seem like it would be an issue with the underly Home Assistant calls, that definitely seems like a problem with ChimeTTS itself, you should note - that when ChimeTTS plays older information, or plays on the wrong media player - the service call TO ChromeTTS in the Trace log, shows that the updated information was actually sent to ChimeTTS.

If this behaviour continues after I upgrade to the Beta, I’ll have to start getting you debug logs.

Hi Andrew, sorry to hear about the issues you’ve been having.

I added additional validation for empty/null message strings in segments in a new beta, v0.11.1-beta2, and I hope it fixes the issue you have with empty message strings.

With respect to the retries before an updated TTS, I think some errors can cause the integration to freeze up, I need to investigate further, but for now note that you “unfreeze” by reloading the integration:
SettingsDevices & servicesChime TTSReload

Regarding the final issue you wrote related to the media player variable…it does indeed sound strange. I would need to see the debug logs to get a better idea of what could be causing that. Could you please provide me with them?

You can turn on debug logs by calling this service:

service: logger.set_level
  data:
    custom_components.chime_tts: debug

Afterwards, calling chime_tts.say should result in debug logs which you can find in the log messages section in your Home Assistant:

https://{YOUR_HOME_ASSISTANT_ADDRESS}:8123/config/logs?filter=chime_tts

Select LOAD FULL LOGS to view all the debug logs

1 Like