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

Hi all! I’m really looking forward to using this integration, but I’m having a couple difficulties.

First, it seems that any changes I make in the configuration dialogue for the integration aren’t accepted, regardless of what they are. When I hit Submit, it appears that the dialogue goes away for a half-second, then comes back. My changed settings are still there, but there doesn’t appear to be any error message in the dialogue, and no indication that anything was changed. When I dismiss it and come back, the old settings are there again. I’ve enabled logging, but can’t see anything that looks like an error at that point, except for the “This Integration isn’t recognized by home assistant and may not be supported”, which seems to come up in other situations as well from what I’ve read, and a couple other messages labled as “Helper” which seem only to have graphics symbols, but no words associated with them. Perhaps those are the error messages, but I can’t read them with a screen reader.

I also can’t seem to get Chime_TTS to recognize custom files, no matter where I put them, although I’m not sure if that’s because I can’t change the paths, or for other reasons. I’ve tried to put files in paths that are already configured in the configuration dialogue and restarting, but no joy.

I’m running HA on a stock installation on RPI3, and just updated everything a couple days ago, but I was having this problem before as well. I can give you more details about versions etc when needed, but thought this might be a quick way to begin figuring out what’s going on.

I see from all the posts, and reports on Github that you’re doing a lot already on supporting this integration, and I very much appreciate it. I’ve tried to study things well before posting, so hopefully I’m not overlooking something obvious and adding needless posts here. Thanks very much for any assistance.

Kevin

Hi @kvutter, sorry to hear you’ve been experiencing these issues.

This issue has been resolved in v1.1.5-beta1.
To install beta versions, you can follow the instructions in the documentation.

In order to understand what the issue might be, can you please provide me with the debug log messages?

1 Like

Hi @jncanches. This issue has been fixed in v1.1.5-beta2. Can you please upgrade to the new version and let me know if the issue is resolved for you?

Hey @Nimrod_Dolev! I’ve upgraded to the last 2 betas you’ve pushed out and both are giving me that same “Sorry, I’m having trouble accessing your Simon Says NA Skill right now.” message. I’ve made sure the artwork option wasn’t checked, which solved the last issue I raised, but I’m not sure what’s going on this time around.

I’ve switched back to v1.1.5-beta1 which works. Here’s my log:

2024-10-18 21:20:48.967 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-18 21:20:48.967 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.6-beta1 ║
2024-10-18 21:20:48.968 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-18 21:20:48.968 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-18 21:20:48.970 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-18 21:20:48.970 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-18 21:20:48.970 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-18 21:20:48.970 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * entity_ids:
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: media_player.couch_echo_left_amz
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 1: media_player.bathroom_echo_show_5
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 2: media_player.kitchen_echo_plus_amz
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 3: media_player.colton_s_echo_show
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * chime_path = /config/www/mp3/ooh-that-feels-good.mp3
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * cache = False
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * offset = 450.0
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * final_delay = 0.0
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_platform = amazon_polly
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_speed = 100.0
2024-10-18 21:20:48.971 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_pitch = 0
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * announce = False
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * fade_audio = False
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * volume_level = -1
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * join_players = True
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * unjoin_players = True
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * audio_conversion = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * media_players_array:
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: entity_id: media_player.couch_echo_left_amz
2024-10-18 21:20:48.972 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.37
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 1: entity_id: media_player.bathroom_echo_show_5
2024-10-18 21:20:48.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.2
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 2: entity_id: media_player.kitchen_echo_plus_amz
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.2
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 3: entity_id: media_player.colton_s_echo_show
2024-10-18 21:20:48.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.2
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-18 21:20:48.976 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-18 21:20:48.979 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "/config/www/mp3/ooh-that-feels-good.mp3"...
2024-10-18 21:20:49.076 DEBUG (MainThread) [custom_components.chime_tts]    ...audio retrieved. Duration: 1.999s
2024-10-18 21:20:49.076 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-10-18 21:20:49.139 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/nd1wmgcx.mp3
2024-10-18 21:20:49.139 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-10-18 21:20:49.139 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /config/www/chime_tts/nd1wmgcx.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/nd1wmgcx_converted.mp3"
2024-10-18 21:20:49.197 DEBUG (MainThread) [custom_components.chime_tts]     ...FFmpeg audio conversion completed.
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]  - Chime TTS audio generated:
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]    * audio_duration = 2.064
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]    * local_path = None
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]    * public_path = "https://<redacted>.ui.nabu.casa/local/chime_tts/nd1wmgcx.mp3"
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]    * media_content_id = None
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭──────────────────────╮
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Pre-Playback Actions │
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰──────────────────────╯
2024-10-18 21:20:49.285 WARNING (MainThread) [custom_components.chime_tts.helpers.media_player_helper] No media_players were found that support joining speakers into a group. A minimum of 2 is required.
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]    4 Alexa media players detected:
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.couch_echo_left_amz
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.bathroom_echo_show_5
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.kitchen_echo_plus_amz
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.colton_s_echo_show
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]    Calling notify.alexa_media with data:
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]      - message: <audio src="https://<redacted>.ui.nabu.casa/local/chime_tts/nd1wmgcx.mp3"/>
2024-10-18 21:20:49.285 DEBUG (MainThread) [custom_components.chime_tts]      - data: {'type': 'tts'}
2024-10-18 21:20:49.286 DEBUG (MainThread) [custom_components.chime_tts]      - target: ['media_player.couch_echo_left_amz', 'media_player.bathroom_echo_show_5', 'media_player.kitchen_echo_plus_amz', 'media_player.colton_s_echo_show']
2024-10-18 21:20:49.286 DEBUG (MainThread) [custom_components.chime_tts]  - Waiting 2.064s for audio playback to complete...
2024-10-18 21:20:51.352 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]  - Waiting until 4 media_players aren't playing...
2024-10-18 21:20:51.352 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.couch_echo_left_amz
2024-10-18 21:20:51.353 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.bathroom_echo_show_5
2024-10-18 21:20:51.353 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.kitchen_echo_plus_amz
2024-10-18 21:20:51.353 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.colton_s_echo_show
2024-10-18 21:20:51.353 DEBUG (MainThread) [custom_components.chime_tts] Removing temporary file:
2024-10-18 21:20:51.355 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Deleting file /config/www/chime_tts/nd1wmgcx.mp3
2024-10-18 21:20:51.355 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-18 21:20:51.356 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 2.39 s ────│
2024-10-18 21:20:51.356 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] 

Hi @Nimrod_Dolev(/u/Nimrod_Dolev). Thanks very much. That fixed the configurations dialogue, which apparently also solved the file path problems as well. Thanks again very much.

1 Like

Hey @ColtonYYZ so sorry it stopped working for you in the beta. I have made some significant changes specific for Alexa Media Player entities in v1.1.6-beta2 which was just released.

Could you please upgrade to the new version and let me know if it fixes the issue?

Thanks for your patience.

Hey @Nimrod_Dolev! So I upgraded to 6.beta2 but I’m still getting that Simon Says Skill message. I’ve reverted back to 5beta1. Here’s my log:

2024-10-22 18:01:07.482 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-22 18:01:07.482 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.6-beta2 ║
2024-10-22 18:01:07.482 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-22 18:01:07.482 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-22 18:01:07.485 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-22 18:01:07.485 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-22 18:01:07.485 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-22 18:01:07.485 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * entity_ids:
2024-10-22 18:01:07.485 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: media_player.bathroom_echo_show_5
2024-10-22 18:01:07.485 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 1: media_player.couch_echo_left_amz
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 2: media_player.kitchen_echo_plus_amz
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 3: media_player.colton_s_echo_show
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * chime_path = /config/www/mp3/ooh-that-feels-good.mp3
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * cache = False
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * offset = 450.0
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * final_delay = 0.0
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_platform = amazon_polly
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_speed = 100.0
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_pitch = 0
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * announce = False
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * fade_audio = False
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * volume_level = -1
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * join_players = True
2024-10-22 18:01:07.486 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * unjoin_players = True
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * audio_conversion = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * media_players_array:
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: entity_id: media_player.bathroom_echo_show_5
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: -1.0
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 1: entity_id: media_player.couch_echo_left_amz
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-22 18:01:07.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.43
2024-10-22 18:01:07.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-22 18:01:07.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-22 18:01:07.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 2: entity_id: media_player.kitchen_echo_plus_amz
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.2
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 3: entity_id: media_player.colton_s_echo_show
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.2
2024-10-22 18:01:07.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-10-22 18:01:07.491 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-10-22 18:01:07.491 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-10-22 18:01:07.491 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-10-22 18:01:07.491 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-22 18:01:07.491 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-22 18:01:07.491 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-22 18:01:07.495 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "/config/www/mp3/ooh-that-feels-good.mp3"...
2024-10-22 18:01:07.590 DEBUG (MainThread) [custom_components.chime_tts]    ...audio retrieved. Duration: 1.999s
2024-10-22 18:01:07.590 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-10-22 18:01:07.654 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/kzwj_qb7.mp3
2024-10-22 18:01:07.654 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-10-22 18:01:07.654 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /config/www/chime_tts/kzwj_qb7.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/kzwj_qb7_converted.mp3"
2024-10-22 18:01:07.713 DEBUG (MainThread) [custom_components.chime_tts]     ...FFmpeg audio conversion completed.
2024-10-22 18:01:07.796 WARNING (MainThread) [py.warnings] /config/custom_components/chime_tts/__init__.py:802: RuntimeWarning: coroutine 'save_audio_to_folder' was never awaited
  save_audio_to_folder(is_local, is_public, audio_dict, output_audio)
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]  - Chime TTS audio generated:
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]    * audio_duration = 2.064
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]    * local_path = None
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]    * public_path = "https://<redacted>.ui.nabu.casa/local/chime_tts/kzwj_qb7.mp3"
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]    * media_content_id = None
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭──────────────────────╮
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Pre-Playback Actions │
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰──────────────────────╯
2024-10-22 18:01:07.801 WARNING (MainThread) [custom_components.chime_tts.helpers.media_player_helper] No media_players were found that support joining speakers into a group. A minimum of 2 is required.
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]    4 Alexa media players detected:
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.bathroom_echo_show_5
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.couch_echo_left_amz
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.kitchen_echo_plus_amz
2024-10-22 18:01:07.801 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.colton_s_echo_show
2024-10-22 18:01:07.842 DEBUG (MainThread) [custom_components.chime_tts]    Calling notify.alexa_media with data:
2024-10-22 18:01:07.842 DEBUG (MainThread) [custom_components.chime_tts]      - message: <audio src="https://<redacted>.ui.nabu.casa/local/chime_tts/kzwj_qb7.mp3"/>
2024-10-22 18:01:07.842 DEBUG (MainThread) [custom_components.chime_tts]      - data: {'type': 'tts'}
2024-10-22 18:01:07.842 DEBUG (MainThread) [custom_components.chime_tts]      - target: ['media_player.bathroom_echo_show_5', 'media_player.couch_echo_left_amz', 'media_player.kitchen_echo_plus_amz', 'media_player.colton_s_echo_show']
2024-10-22 18:01:07.843 DEBUG (MainThread) [custom_components.chime_tts]  - Waiting 2.064s for audio playback to complete...
2024-10-22 18:01:09.908 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]  - Waiting until 4 media_players aren't playing...
2024-10-22 18:01:09.909 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.bathroom_echo_show_5
2024-10-22 18:01:09.909 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.couch_echo_left_amz
2024-10-22 18:01:09.909 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.kitchen_echo_plus_amz
2024-10-22 18:01:09.909 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.colton_s_echo_show
2024-10-22 18:01:09.909 DEBUG (MainThread) [custom_components.chime_tts] Removing temporary file:
2024-10-22 18:01:09.909 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Deleting file /config/www/chime_tts/kzwj_qb7.mp3
2024-10-22 18:01:09.910 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-22 18:01:09.910 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 2.43 s ────│
2024-10-22 18:01:09.910 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯

Hi all. Maybe a silly question, but in the audio src message, aren’t those supposed to be single quotes, rather than double-quotes? And also, doesn’t the whole “audio src” section from less to greater have to be in double-quotes? When I sent just a tts message to an audio file, that worked for me. Not sure if that makes any difference in this case. My 1.5 is also giving me the simon says skill error also, and I haven’t tried betas yet. Just bearly got alexa to play an audio file successfully straight from the notify command, so haven’t had time to go further yet. Hope this perhaps helps someone. Thanks again for all the hard work.

Hi Nim.

So, I believe I have the latest release version installed (1.1.5), but am still unable to play a custom MP3 file containing a chime. I moved the file to various places, but the file containing the chime isn’t played before the actual announcement (which is played)

I currently have the file in /root/media which allows me to verify that a standard HA media player can in fact play the MP3, but ideally, I’d like to have it in /local/sounds, where all my custom sounds are located. But hey, I’ll put it where ever the integration can find and play it.

Hi @DE5013. I think the issue is that you have included /root in the mp3 file path.

Please try omitting it, eg: /media/chime.mp3

Alas, no. If I just put /media/chime.mp3, absolutley nothing plays. Logs show:

Logger: homeassistant.core
Source: core.py:2781
First occurred: 4:12:14 PM (2 occurrences)
Last logged: 4:12:26 PM

Error executing service: <ServiceCall media_player.play_media (c:01JB840ENMMK2HJRJY882VPH7H): entity_id=['media_player.darrells_office_homepod'], announce=True, extra=, media_type=music, media_id=media-source://media_source/local/sounds/temp/chime_tts/zksd0u65.mp3>
Error executing service: <ServiceCall media_player.play_media (c:01JB840TSAZ40X7JWNS0S7JQNG): entity_id=['media_player.darrells_office_homepod'], announce=True, extra=, media_type=music, media_id=media-source://media_source/local/sounds/temp/chime_tts/zksd0u65.mp3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/apple_tv/media_player.py", line 345, in async_play_media
    await self.atv.stream.stream_file(media_id)
  File "/usr/local/lib/python3.12/site-packages/pyatv/core/facade.py", line 374, in stream_file
    await self.relay("stream_file")(
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/raop/__init__.py", line 360, in stream_file
    audio_file = await open_source(
                 ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/raop/audio_source.py", line 730, in open_source
    return await InternetSource.open(source, sample_rate, channels, sample_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/raop/audio_source.py", line 598, in open
    stream_generator = await loop.run_in_executor(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/miniaudio.py", line 1270, in stream_any
    raise DecodeError("failed to init decoder", result)
miniaudio.DecodeError: ('failed to init decoder', -1)

Can you please enable debug logging so that I might be better able to understand what the issue is?

Hi @Nimrod_Dolev

I just found your wonderful integration and I´m more than impressed. Coming from Sonos TTS Script (stopped working) to your integration is pure fun. Everything worked from the beginning. Im using it to play some chatgpt generated tts messages on my sonos system.

Im just having two minor issues that I would like to understand:

  • Playing the tts message on more than one device is not working for me.

  • Volume Slider also not working (The messages plays at maximum volume)

Would love to get some hints :slight_smile:

- action: chime_tts.say
    metadata: {}
    data:
      chime_path: chord
      tts_platform: cloud
      message: "{{ gpt_response.content.choices[0].message.content }}"
      voice: GiselaNeural
      volume_level: 0,01
    target:
      entity_id:
        - media_player.sonos_arc
        - media_player.sonos_one_sl_kuche

Hey @Andre3000, thanks for the kind words :slight_smile:

Playing the tts message on more than one device is not working for me.

Sonos media_player entities have been known to be problematic (just look at the messages in this post alone).
That being said, please provide me with debug log messages so that I can take a closer look and possibly see something relevant.

Volume Slider also not working (The messages plays at maximum volume)

I think the volume issue could be because you used a value with a comma instead of a period (0,01 instead of 0.01). Try using a period instead (0.01) and report back if it’s still not working (with debug log messages).

Thanks for your super fast reply! Please find below the requested logs.

2024-10-28 19:43:46.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔══════════════════════════════════════╗
2024-10-28 19:43:46.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.5 ║
2024-10-28 19:43:46.974 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚══════════════════════════════════════╝
2024-10-28 19:43:46.974 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.sonos_one_sl_kuche
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.sonos_arc
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = chord
2024-10-28 19:43:46.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Deine königliche Wäsche ist bereit, sich dir ergeben zu lassen - die Waschmaschine hat getan, was sie tun musste! ✨👑
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = cloud
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = True
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 0.01
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = True
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = True
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-28 19:43:46.978 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.sonos_one_sl_kuche
2024-10-28 19:43:46.979 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos
2024-10-28 19:43:46.979 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.1
2024-10-28 19:43:46.979 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: 0.01
2024-10-28 19:43:46.979 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-28 19:43:46.982 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: True
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: True
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.sonos_arc
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.5
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: 0.01
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: True
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: True
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-28 19:43:46.983 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-28 19:43:46.984 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = GiselaNeural
2024-10-28 19:43:46.984 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-28 19:43:46.984 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-28 19:43:46.984 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-28 19:43:46.984 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/chord.mp3
2024-10-28 19:43:46.984 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/chord.mp3"...
2024-10-28 19:43:47.100 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.162s
2024-10-28 19:43:47.102 DEBUG (MainThread) [custom_components.chime_tts] - Setting language to 'de-DE' for Nabu Casa TTS voice: 'GiselaNeural'.
2024-10-28 19:43:47.102 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-10-28 19:43:47.103 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'cloud'
2024-10-28 19:43:47.103 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Deine königliche Wäsche ist bereit, sich dir ergeben zu lassen - die Waschmaschine hat getan, was sie tun musste! ✨👑'
2024-10-28 19:43:47.103 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-10-28 19:43:47.103 DEBUG (MainThread) [custom_components.chime_tts] * language = 'de-DE'
2024-10-28 19:43:47.103 DEBUG (MainThread) [custom_components.chime_tts] * options = {'voice': 'GiselaNeural'}
2024-10-28 19:43:48.050 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 950.0ms
2024-10-28 19:43:48.082 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to local folder: /media/sounds/temp/chime_tts/...
2024-10-28 19:43:48.290 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/f2i3i_ji.mp3
2024-10-28 19:43:48.399 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-10-28 19:43:48.399 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 11.356
2024-10-28 19:43:48.399 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/media/sounds/temp/chime_tts/f2i3i_ji.mp3"
2024-10-28 19:43:48.399 DEBUG (MainThread) [custom_components.chime_tts] * public_path = None
2024-10-28 19:43:48.400 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/f2i3i_ji.mp3"
2024-10-28 19:43:48.400 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭──────────────────────╮
2024-10-28 19:43:48.400 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Pre-Playback Actions │
2024-10-28 19:43:48.400 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰──────────────────────╯
2024-10-28 19:43:48.400 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] Joined speaker leader: media_player.sonos_one_sl_kuche, with 1 group member:
2024-10-28 19:43:48.400 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - media_player.sonos_arc
2024-10-28 19:43:49.422 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] 1 Sonos media player detected:
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] - media_player.sonos_one_sl_kuche
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.sonos_one_sl_kuche']
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] - announce: True
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/f2i3i_ji.mp3
2024-10-28 19:43:49.423 DEBUG (MainThread) [custom_components.chime_tts] - extra: {'volume': 1}
2024-10-28 19:43:49.437 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 11.356s for audio playback to complete...
2024-10-28 19:44:00.795 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 0 media_players aren't playing...
2024-10-28 19:44:00.795 DEBUG (MainThread) [custom_components.chime_tts] - Timed out waiting for playback to complete
2024-10-28 19:44:00.796 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────╮
2024-10-28 19:44:00.796 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Post-Playback Actions │
2024-10-28 19:44:00.796 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────╯
2024-10-28 19:44:00.796 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Calling media_player.unjoin service...
2024-10-28 19:44:00.796 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - media_player.unjoin 1/2: media_player.sonos_arc
2024-10-28 19:44:01.500 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - media_player.unjoin 2/2: media_player.sonos_one_sl_kuche
2024-10-28 19:44:01.603 DEBUG (MainThread) [custom_components.chime_tts] Removing temporary file:
2024-10-28 19:44:01.604 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Deleting file /media/sounds/temp/chime_tts/f2i3i_ji.mp3
2024-10-28 19:44:01.605 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────────────────────────────╮
2024-10-28 19:44:01.605 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 14.63 s ────│
2024-10-28 19:44:01.605 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────────────────────────────╯

Thanks for the debug log messages :+1:
I see no problems in the logs, but I noticed that you’re setting the volume to 0.01 (which is 1%). Could this be the reason you don’t hear anything?

Thanks for flying trough the logs! I need to specify. I hear the tts message on “Sonos SL Küche” but not on the “Sonos Arc” device. You’re right the volume is very low, but the kids are sleeping. For testing purposes it’s fine.

Edit: new behaviour… if music is playing on Sonos One SL Küche and chime_tts is called l, then the volume at Sonos Arc is set to 50% and I have no idea why. Just lost my ears :joy::joy:

Sorry for the hearing loss! :man_facepalming:
Could you please provide me with the debug logs? It’s the only way I can see what’s going on.

I will provide you the logs probably tomorrow. While reading through the web I found this quote linked to the Sonos ha Integration:

Playing TTS (text-to-speech) or audio files as alerts (e.g., a doorbell or alarm) is possible by setting the announce argument to true . Using announce will play the provided media URL as an overlay, gently lowering the current music volume and automatically restoring to the original level when finished. An optional volume argument can also be provided in the extra dictionary to play the alert at a specific volume level.

Example code:

target:
  entity_id: media_player.sonos
data:
  announce: true
  media_content_type: "music"
  media_content_id: "http://192.168.1.50:8123/local/sound_files/doorbell-front.mp3"
  extra:
    volume: 20

EDIT: the “extra” argument in code isn’t working too

EDIT2: this code is now working in terms of volume adjustment! But I had to remove one Sonos. As soon as I add another media player entity the volume is not adjusted but stays on the previous level.

    metadata: {}
    data:
      chime_path: chord
      tts_platform: cloud
      message: "{{ gpt_response.content.choices[0].message.content }}"
      voice: KatjaNeural
      join_players: true
      unjoin_players: true
      announce: true
      volume_level: 0.25
    target:
      entity_id:
        - media_player.sonos_arc

Done. Where do you want the logs sending (presumably not here)?