Closed jesse-kaufman closed 3 weeks ago
Hi @jesse-kaufman, thank you for opening this issue and for providing the debug log & additional details.
I would like to ask you to please try the following 2 troubleshooting steps to help me get a better idea of what might be causing the issue:
Have you enabled the MP3 cover art option in the Chime TTS configuration page? If so, can you please try disabling it and playing to both Alexa and Google Cast media players and let me know if you have playback on both media players?
media_player.play_media
ActionIf you still experience the issue, I think the other possible cause may be related to how the MP3 is encoded when being prepared for both Alexa and Google Cast media players. The following will help determine if this is the case:
Prepare an MP3 via chime_tts.say for both Alexa and Google Cast media players, with cache
enabled, i.e:
action: chime_tts.say
target:
entity_id:
- media_player.dining_room_speaker
- media_player.kitchen_echo
data:
chime_path: /config/www/mp3/reminder.mp3
message: Testing testing 1 2 3
tts_speed: 80.0
cache: true
Open the debug logs for the call to chime_tts.say
and retrieve the public URL to the newly generated MP3 file. You should find it in the debug log section that begins with "Calling notify.alexa_media with data:
". eg:
Calling notify.alexa_media with data:
- message: <audio src="https://ha.lloydnet.org/local/chime_tts/tktlko6n.mp3"/>
- data: {'type': 'tts'}
- target: ['media_player.kitchen_echo']
Test if the file is publicly accessible by opening it with your browser. If not, this is likely the issue.
If it is accessible, try to play the file to your Alexa media player/s directly, via the notify.alexa_media
action, eg:
action: notify.alexa_media
data:
message: <audio src="https://ha.lloydnet.org/local/chime_tts/tktlko6n.mp3"/>
data: {'type': 'tts'}
target:
- media_player.kitchen_echo
If you don't hear the file then the issue is with the MP3's encoding. If you do hear it, the issue must be somewhere in the code for Chime TTS.
Awesome, thank you! I'm a developer as well, so I'm all about providing lots of detail! :)
First a couple notes about changes since my initial report:
MP3 Cover art option is unchecked (and has been left unchecked the entire time)
Cached TTS mp3 file:
Input #0, mp3, from '43rbtaqu.mp3':
Metadata:
encoder : Lavf60.16.100
Duration: 00:00:00.84, start: 0.050113, bitrate: 34 kb/s
Stream #0:0: Audio: mp3 (mp3float), 22050 Hz, mono, fltp, 32 kb/s
Complete, publicly-accessible mp3 file:
Input #0, mp3, from '0ggtj2w7.mp3':
Metadata:
encoder : Lavf60.16.100
Duration: 00:00:02.35, start: 0.000000, bitrate: 48 kb/s
Stream #0:0: Audio: mp3 (mp3float), 24000 Hz, stereo, fltp, 48 kb/s
Cached TTS mp3 file:
Input #0, mp3, from 't7apvii7.mp3':
Metadata:
encoder : Lavf60.16.100
Duration: 00:00:02.35, start: 0.000000, bitrate: 48 kb/s
Stream #0:0: Audio: mp3 (mp3float), 24000 Hz, stereo, fltp, 48 kb/s
Complete, publicly-accessible mp3 file:
Input #0, mp3, from 'ef762k5o.mp3':
Metadata:
encoder : Lavf60.16.100
Duration: 00:00:02.32, start: 0.025057, bitrate: 128 kb/s
Stream #0:0: Audio: mp3 (mp3float), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc60.31
Cached TTS mp3 file:
Input #0, mp3, from 't7apvii7.mp3':
Metadata:
encoder : Lavf60.16.100
Duration: 00:00:02.40, start: 0.000000, bitrate: 48 kb/s
Stream #0:0: Audio: mp3 (mp3float), 24000 Hz, stereo, fltp, 48 kb/s
Complete, publicly-accessible mp3 file:
Input #0, mp3, from 'ef762k5o.mp3':
Metadata:
encoder : Lavf60.16.100
Duration: 00:00:02.35, start: 0.000000, bitrate: 48 kb/s
Stream #0:0: Audio: mp3 (mp3float), 24000 Hz, stereo, fltp, 48 kb/s
2024-10-01 09:20:19.386 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-01 09:20:19.386 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.5-beta1 ║
2024-10-01 09:20:19.386 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-01 09:20:19.386 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.kitchen_echo']
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/mp3/reminder.mp3
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Test
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 90.0
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-10-01 09:20:19.387 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-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.kitchen_echo
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = en_US-hfc_female-medium (default value entered in configuration)
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-01 09:20:19.387 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-10-01 09:20:19.391 DEBUG (MainThread) [custom_components.chime_tts] ...no cached audio found
2024-10-01 09:20:19.392 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/mp3/reminder.mp3"...
2024-10-01 09:20:19.480 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.997s
2024-10-01 09:20:19.480 DEBUG (MainThread) [custom_components.chime_tts] - Attempting to retrieve TTS audio from cache...
2024-10-01 09:20:19.482 DEBUG (MainThread) [custom_components.chime_tts] ...no cached TTS audio found
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - Using default TTS platform: 'tts.piper'
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'tts.piper'
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Test'
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts] * cache = True
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-10-01 09:20:19.484 DEBUG (MainThread) [custom_components.chime_tts] * options = {'voice': 'en_US-hfc_female-medium'}
2024-10-01 09:20:19.791 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 310.0ms
2024-10-01 09:20:19.791 DEBUG (MainThread) [custom_components.chime_tts] - Saving generated TTS audio to cache...
2024-10-01 09:20:19.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/43rbtaqu.mp3
2024-10-01 09:20:19.841 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-01 09:20:19.841 DEBUG (MainThread) [custom_components.chime_tts] - key: "c1660646ace9ab9403d4b19418948f421b305e3d28068a4d152bdbfcb77564fc"
2024-10-01 09:20:19.841 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'local_path': '/media/sounds/temp/chime_tts/43rbtaqu.mp3', 'audio_duration': 0.78}"
2024-10-01 09:20:19.843 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio saved to cache
2024-10-01 09:20:19.843 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - ...changing TTS playback speed to 90.0% of original
2024-10-01 09:20:19.893 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/temp_segment.mp3
2024-10-01 09:20:19.893 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /media/sounds/temp/chime_tts/temp_segment.mp3 -af atempo=0.9 /media/sounds/temp/chime_tts/temp_segment_converted.mp3"
2024-10-01 09:20:20.031 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-10-01 09:20:20.102 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/0ggtj2w7.mp3
2024-10-01 09:20:20.102 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-10-01 09:20:20.102 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /config/www/chime_tts/0ggtj2w7.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/0ggtj2w7_converted.mp3"
2024-10-01 09:20:20.196 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-10-01 09:20:20.286 ERROR (MainThread) [custom_components.chime_tts.helpers.media_player_helper] Media file "%s" is not in a local media directory. See https://www.home-assistant.io/more-info/local-media/setup-media/
2024-10-01 09:20:20.289 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-10-01 09:20:20.289 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 2.352
2024-10-01 09:20:20.289 DEBUG (MainThread) [custom_components.chime_tts] * local_path = None
2024-10-01 09:20:20.289 DEBUG (MainThread) [custom_components.chime_tts] * public_path = "https://ha.lloydnet.org/local/chime_tts/0ggtj2w7.mp3"
2024-10-01 09:20:20.289 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = None
2024-10-01 09:20:20.291 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-01 09:20:20.291 DEBUG (MainThread) [custom_components.chime_tts] - key: "fe0fce912430093e1ed6acd5a97de044ac87e21cfaa08851640a1f678e5b6cd6"
2024-10-01 09:20:20.291 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': 'https://ha.lloydnet.org/local/chime_tts/0ggtj2w7.mp3', 'audio_duration': 2.352}"
2024-10-01 09:20:20.292 ERROR (MainThread) [custom_components.chime_tts.helpers.media_player_helper] Media file "%s" is not in a local media directory. See https://www.home-assistant.io/more-info/local-media/setup-media/
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://ha.lloydnet.org/local/chime_tts/0ggtj2w7.mp3"/>
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.kitchen_echo']
2024-10-01 09:20:20.292 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 2.352s for audio playback to complete...
2024-10-01 09:20:22.645 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...
2024-10-01 09:20:22.645 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.kitchen_echo
2024-10-01 09:20:22.646 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-01 09:20:22.646 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 3.26 s ────│
2024-10-01 09:20:22.646 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
2024-10-01 09:31:12.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-01 09:31:12.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.5-beta1 ║
2024-10-01 09:31:12.487 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-01 09:31:12.487 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-01 09:31:12.489 INFO (MainThread) [custom_components.chime_tts.helpers.media_player] Turning on "media_player.dining_room_speaker"...
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.kitchen_echo
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.dining_room_speaker
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/mp3/reminder.mp3
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Test
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 90.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-10-01 09:31:12.489 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-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.kitchen_echo
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.dining_room_speaker
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: cast
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-01 09:31:12.489 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = en_US-hfc_female-medium (default value entered in configuration)
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-01 09:31:12.490 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-10-01 09:31:12.493 ERROR (MainThread) [custom_components.chime_tts.helpers.media_player_helper] Media file "%s" is not in a local media directory. See https://www.home-assistant.io/more-info/local-media/setup-media/
2024-10-01 09:31:12.493 DEBUG (MainThread) [custom_components.chime_tts] ...no cached audio found
2024-10-01 09:31:12.494 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/mp3/reminder.mp3"...
2024-10-01 09:31:12.587 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.997s
2024-10-01 09:31:12.587 DEBUG (MainThread) [custom_components.chime_tts] - Attempting to retrieve TTS audio from cache...
2024-10-01 09:31:12.589 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/media/sounds/temp/chime_tts/43rbtaqu.mp3"...
2024-10-01 09:31:12.672 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.78s
2024-10-01 09:31:12.672 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - ...changing TTS playback speed to 90.0% of original
2024-10-01 09:31:12.721 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/temp_segment.mp3
2024-10-01 09:31:12.722 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /media/sounds/temp/chime_tts/temp_segment.mp3 -af atempo=0.9 /media/sounds/temp/chime_tts/temp_segment_converted.mp3"
2024-10-01 09:31:12.858 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to local folder: /media/sounds/temp/chime_tts/...
2024-10-01 09:31:12.929 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/t7apvii7.mp3
2024-10-01 09:31:12.929 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-10-01 09:31:12.929 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /media/sounds/temp/chime_tts/t7apvii7.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /media/sounds/temp/chime_tts/t7apvii7_converted.mp3"
2024-10-01 09:31:12.987 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-10-01 09:31:13.076 DEBUG (MainThread) [custom_components.chime_tts] - Saving generated audio to public folder: /config/www/chime_tts/...
2024-10-01 09:31:13.146 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/ef762k5o.mp3
2024-10-01 09:31:13.149 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-10-01 09:31:13.149 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 2.352
2024-10-01 09:31:13.149 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/media/sounds/temp/chime_tts/t7apvii7.mp3"
2024-10-01 09:31:13.149 DEBUG (MainThread) [custom_components.chime_tts] * public_path = "https://ha.lloydnet.org/local/chime_tts/ef762k5o.mp3"
2024-10-01 09:31:13.149 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/t7apvii7.mp3"
2024-10-01 09:31:13.150 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-01 09:31:13.150 DEBUG (MainThread) [custom_components.chime_tts] - key: "fe0fce912430093e1ed6acd5a97de044ac87e21cfaa08851640a1f678e5b6cd6"
2024-10-01 09:31:13.150 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': 'https://ha.lloydnet.org/local/chime_tts/ef762k5o.mp3', 'audio_duration': 2.352, 'local_path': None}"
2024-10-01 09:31:13.152 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-01 09:31:13.152 DEBUG (MainThread) [custom_components.chime_tts] - key: "fe0fce912430093e1ed6acd5a97de044ac87e21cfaa08851640a1f678e5b6cd6"
2024-10-01 09:31:13.152 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': 'https://ha.lloydnet.org/local/chime_tts/ef762k5o.mp3', 'audio_duration': 2.352, 'local_path': '/media/sounds/temp/chime_tts/t7apvii7.mp3'}"
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] 1 Regular media player detected:
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] - media_player.dining_room_speaker
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.dining_room_speaker']
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-10-01 09:31:13.154 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/t7apvii7.mp3
2024-10-01 09:31:13.155 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-10-01 09:31:13.155 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://ha.lloydnet.org/local/chime_tts/ef762k5o.mp3"/>
2024-10-01 09:31:13.155 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-10-01 09:31:13.155 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.kitchen_echo']
2024-10-01 09:31:13.155 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 2.352s for audio playback to complete...
2024-10-01 09:31:15.508 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 2 media_players aren't playing...
2024-10-01 09:31:15.509 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.kitchen_echo
2024-10-01 09:31:16.912 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.dining_room_speaker
2024-10-01 09:31:16.912 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-01 09:31:16.912 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 4.42 s ────│
2024-10-01 09:31:16.912 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
2024-10-01 09:50:36.820 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-01 09:50:36.820 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.5-beta1 ║
2024-10-01 09:50:36.820 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-01 09:50:36.820 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-01 09:50:36.822 INFO (MainThread) [custom_components.chime_tts.helpers.media_player] Turning on "media_player.dining_room_speaker"...
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.kitchen_echo
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.dining_room_speaker
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/mp3/reminder.mp3
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Test
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 90.0
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-10-01 09:50:36.822 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-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.kitchen_echo
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-01 09:50:36.822 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.dining_room_speaker
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: cast
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = en_US-hfc_female-medium (default value entered in configuration)
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-01 09:50:36.823 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts] Cached audio found:
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts] - public_path = "https://ha.lloydnet.org/local/chime_tts/ef762k5o.mp3"
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts] - audio_duration = 2.352
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts] - local_path = "/media/sounds/temp/chime_tts/t7apvii7.mp3"
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/t7apvii7.mp3"
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts] Apply audio conversion
2024-10-01 09:50:36.826 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /media/sounds/temp/chime_tts/t7apvii7.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /media/sounds/temp/chime_tts/t7apvii7_converted.mp3"
2024-10-01 09:50:36.885 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFMpeg operation: "ffmpeg -i /config/www/chime_tts/ef762k5o.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/ef762k5o_converted.mp3"
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] ...cached audio found
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] 1 Regular media player detected:
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] - media_player.dining_room_speaker
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.dining_room_speaker']
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-10-01 09:50:36.943 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/t7apvii7.mp3
2024-10-01 09:50:36.944 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-10-01 09:50:36.944 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://ha.lloydnet.org/local/chime_tts/ef762k5o.mp3"/>
2024-10-01 09:50:36.944 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-10-01 09:50:36.944 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.kitchen_echo']
2024-10-01 09:50:36.944 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 2.352s for audio playback to complete...
2024-10-01 09:50:39.301 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 2 media_players aren't playing...
2024-10-01 09:50:39.301 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.kitchen_echo
2024-10-01 09:50:41.306 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.dining_room_speaker
2024-10-01 09:50:41.306 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-01 09:50:41.306 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 4.49 s ────│
2024-10-01 09:50:41.306 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
I just released a new beta version, v1.1.6-beta1, which hopefully addresses the issues. Can you please upgrade to the beta version and let me know if you're still experiencing the issues?
Please upgrade to the newer beta release, v1.1.6-beta2, which has additional fixes specifically for Alexa Media Player.
For me, 1.1.6-beta2 killed all Alexa playback and I only get the "Simon Says" error. I get the following in my HA log:
2024-10-23 07:44:02.352 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-23 07:44:02.396 ERROR (MainThread) [custom_components.chime_tts.helpers.helpers] Error analyzing file /config/www/chime_tts/t3oxnwsx.mp3: Caught blocking call to sleep with args (0.001,) inside the event loop by custom integration 'chime_tts' at custom_components/chime_tts/helpers/helpers.py, line 700: result = subprocess.run(. (offender: /usr/local/lib/python3.12/subprocess.py, line 2047: time.sleep(delay)), please create a bug report at https://github.com/nimroddolev/chime_tts/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#sleep
2024-10-23 07:51:27.778 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-23 07:51:27.838 ERROR (MainThread) [custom_components.chime_tts.helpers.helpers] Error analyzing file /config/www/chime_tts/jjxrd1ku.mp3: Caught blocking call to sleep with args (0.001,) inside the event loop by custom integration 'chime_tts' at custom_components/chime_tts/helpers/helpers.py, line 700: result = subprocess.run(. (offender: /usr/local/lib/python3.12/subprocess.py, line 2047: time.sleep(delay)), please create a bug report at https://github.com/nimroddolev/chime_tts/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#sleep
I reverted to 1.1.6-beta1 and I'm able to play announcements on Alexa again, but still unable to play to both Google and Alexa devices
Thank you @jesse-kaufman for reporting the RuntimeWarning: coroutine 'save_audio_to_folder' was never awaited
issue. I fixed it in v1.1.6-beta3. Can you please upgrade and let me know if the issue is resolved?
Here's what I'm getting on beta 3, along with the "Simon Says" error:
2024-10-25 09:19:55.014 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to sleep with args (0.001,) inside the event loop by custom integration 'chime_tts' at custom_components/chime_tts/helpers/filesystem.py, line 353: result = subprocess.run( (offender: /usr/local/lib/python3.12/subprocess.py, line 2047: time.sleep(delay)), please create a bug report at https://github.com/nimroddolev/chime_tts/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#sleep
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/local/lib/python3.12/site-packages/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/local/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/local/lib/python3.12/site-packages/homeassistant/runner.py", line 189, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/config/custom_components/chime_tts/queue_manager.py", line 91, in async_queue_processor
await self.async_process_queue()
File "/config/custom_components/chime_tts/queue_manager.py", line 50, in async_process_queue
await self._process_service_call(service_call)
File "/config/custom_components/chime_tts/queue_manager.py", line 57, in _process_service_call
result = await asyncio.wait_for(
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
return await fut
File "/config/custom_components/chime_tts/__init__.py", line 187, in async_say_execute
return await async_prepare_media(hass, params, options, media_players_array, is_say_url, start_time)
File "/config/custom_components/chime_tts/__init__.py", line 307, in async_prepare_media
play_result = await async_play_media(
File "/config/custom_components/chime_tts/__init__.py", line 1231, in async_play_media
media_service_calls = prepare_media_service_calls(hass, entity_ids, service_data, audio_dict)
File "/config/custom_components/chime_tts/__init__.py", line 1342, in prepare_media_service_calls
public_file = helpers.ffmpeg_convert_from_file(hass, local_public_file, FFMPEG_ARGS_ALEXA)
File "/config/custom_components/chime_tts/helpers/helpers.py", line 613, in ffmpeg_convert_from_file
if ffmpeg_args == FFMPEG_ARGS_ALEXA and filesystem_helper.is_audio_alexa_compatible(hass, file_path):
File "/config/custom_components/chime_tts/helpers/filesystem.py", line 353, in is_audio_alexa_compatible
result = subprocess.run(
2024-10-25 09:19:55.014 ERROR (MainThread) [custom_components.chime_tts.helpers.filesystem] Error analyzing file /config/www/chime_tts/g129zj7p.mp3: Caught blocking call to sleep with args (0.001,) inside the event loop by custom integration 'chime_tts' at custom_components/chime_tts/helpers/filesystem.py, line 353: result = subprocess.run(. (offender: /usr/local/lib/python3.12/subprocess.py, line 2047: time.sleep(delay)), please create a bug report at https://github.com/nimroddolev/chime_tts/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#sleep
I have released a new beta version, v1.1.6-beta4, which fixes the blocking call and hopefully addresses the "Simon says" error as well. Can you please upgrade and let me know if the issues are resolved?
That fixed the errors in the log and I'm able to play to both Google and Alexa devices as long as caching is enabled. If caching is disabled, I get the "Simon says" error whether playing to one or multiple devices.
By default, I have caching on, so this should fix things for my particular setup at least! Thank you so much!
Here's the debug log for a failed attempt with caching disabled .. I tried both with the audio conversion parameter left blank as well as selecting Alexa with the same result if caching is off.
2024-10-29 08:40:58.864 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-29 08:40:58.864 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 2.16 s ────│
2024-10-29 08:40:58.864 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
2024-10-29 08:41:07.411 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-29 08:41:07.411 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.6-beta4 ║
2024-10-29 08:41:07.411 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-29 08:41:07.411 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.kitchen_echo']
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = chirp
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Test
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-10-29 08:41:07.413 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-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.kitchen_echo
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = en_US-hfc_female-medium (default value entered in configuration)
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-29 08:41:07.413 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-29 08:41:07.414 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/chirp.mp3
2024-10-29 08:41:07.414 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/chirp.mp3"...
2024-10-29 08:41:07.501 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.395s
2024-10-29 08:41:07.504 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-10-29 08:41:07.504 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'tts.piper'
2024-10-29 08:41:07.504 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Test'
2024-10-29 08:41:07.504 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-10-29 08:41:07.504 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-10-29 08:41:07.504 DEBUG (MainThread) [custom_components.chime_tts] * options = {'voice': 'en_US-hfc_female-medium'}
2024-10-29 08:41:07.593 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 90.0ms
2024-10-29 08:41:07.595 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-10-29 08:41:07.662 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/m7p778o7.mp3
2024-10-29 08:41:07.662 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-10-29 08:41:07.705 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File failed compatibility requirements: /config/www/chime_tts/m7p778o7.mp3
2024-10-29 08:41:07.705 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFmpeg operation: "ffmpeg -i /config/www/chime_tts/m7p778o7.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/m7p778o7_converted.mp3"
2024-10-29 08:41:07.761 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/m7p778o7.mp3'
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 1.68
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] * local_path = None
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] * public_path = "https://ha.lloydnet.org/local/chime_tts/m7p778o7.mp3"
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = None
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo
2024-10-29 08:41:07.853 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/m7p778o7.mp3'
2024-10-29 08:41:07.895 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-10-29 08:41:07.895 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src='https://ha.lloydnet.org/local/chime_tts/m7p778o7.mp3'/>
2024-10-29 08:41:07.895 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-10-29 08:41:07.895 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.kitchen_echo']
2024-10-29 08:41:07.896 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 1.68s for audio playback to complete...
2024-10-29 08:41:09.577 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...
2024-10-29 08:41:09.577 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.kitchen_echo
2024-10-29 08:41:09.577 DEBUG (MainThread) [custom_components.chime_tts] Removing temporary file:
2024-10-29 08:41:09.577 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Deleting file /config/www/chime_tts/m7p778o7.mp3
2024-10-29 08:41:09.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-29 08:41:09.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 2.17 s ────│
2024-10-29 08:41:09.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
And in the off chance that it might help, here's the debug log for a SUCCESSFUL attempt with caching enabled and playing to mixed devices:
2024-10-29 08:51:12.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-29 08:51:12.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 1.73 s ────│
2024-10-29 08:51:12.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
2024-10-29 08:51:16.128 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-29 08:51:16.128 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.6-beta4 ║
2024-10-29 08:51:16.128 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-29 08:51:16.128 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-29 08:51:16.130 INFO (MainThread) [custom_components.chime_tts.helpers.media_player] Turning on "media_player.dining_room_speaker"...
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.dining_room_speaker
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.kitchen_echo
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = chirp
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Test
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.dining_room_speaker
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: cast
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.kitchen_echo
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = en_US-hfc_female-medium (default value entered in configuration)
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-29 08:51:16.131 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-10-29 08:51:16.135 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/wp7gg8x4.mp3'
2024-10-29 08:51:16.136 DEBUG (MainThread) [custom_components.chime_tts] - Copying cached public file /config/www/chime_tts/wp7gg8x4.mp3 to local path /media/sounds/temp/chime_tts/
2024-10-29 08:51:16.139 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-29 08:51:16.139 DEBUG (MainThread) [custom_components.chime_tts] - key: "86e3f4b92147b3b26bee7fbf9031024ce447abb0d0a4e506ed9e096579be3f61"
2024-10-29 08:51:16.139 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': 'https://ha.lloydnet.org/local/chime_tts/wp7gg8x4.mp3', 'audio_duration': 1.68, 'local_path': '/media/sounds/temp/chime_tts/wp7gg8x4.mp3'}"
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] Using cached audio:
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] - public_path = "https://ha.lloydnet.org/local/chime_tts/wp7gg8x4.mp3"
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] - audio_duration = 1.68
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] - local_path = "/media/sounds/temp/chime_tts/wp7gg8x4.mp3"
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/wp7gg8x4.mp3"
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] 1 Regular media player detected:
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] - media_player.dining_room_speaker
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo
2024-10-29 08:51:16.141 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/wp7gg8x4.mp3'
2024-10-29 08:51:16.186 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-10-29 08:51:16.186 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.dining_room_speaker']
2024-10-29 08:51:16.186 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-10-29 08:51:16.186 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-10-29 08:51:16.186 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/wp7gg8x4.mp3
2024-10-29 08:51:16.187 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-10-29 08:51:16.187 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src='https://ha.lloydnet.org/local/chime_tts/wp7gg8x4.mp3'/>
2024-10-29 08:51:16.187 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-10-29 08:51:16.187 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.kitchen_echo']
2024-10-29 08:51:16.187 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 1.68s for audio playback to complete...
2024-10-29 08:51:17.869 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 2 media_players aren't playing...
2024-10-29 08:51:17.870 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.kitchen_echo
2024-10-29 08:51:19.676 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.dining_room_speaker
2024-10-29 08:51:19.676 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-29 08:51:19.676 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 3.55 s ────│
2024-10-29 08:51:19.676 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
Never mind .. looks like I spoke too soon .. still having really intermittent playback issues where I get the "Simon says" error even though the final MP3 is accessible via web and is in the right format for Alexa .. I can't figure out the difference between this call and the others that have worked
2024-10-29 09:32:10.140 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════╗
2024-10-29 09:32:10.140 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say Called. Version v1.1.6-beta4 ║
2024-10-29 09:32:10.140 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════╝
2024-10-29 09:32:10.140 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.bedroom_echo
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.kitchen_echo
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/mp3/reminder.mp3
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 100.0
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Here's your reminder to take out the trash.
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 95.0
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * audio_conversion = -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -filter:a volume=1.25
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.bedroom_echo
2024-10-29 09:32:10.143 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.kitchen_echo
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────╮
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ TTS-Specific Params │
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────╯
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * voice = en_US-hfc_female-medium
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-10-29 09:32:10.144 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-10-29 09:32:10.149 DEBUG (MainThread) [custom_components.chime_tts] ...no cached audio found
2024-10-29 09:32:10.151 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/mp3/reminder.mp3"...
2024-10-29 09:32:10.249 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.997s
2024-10-29 09:32:10.250 DEBUG (MainThread) [custom_components.chime_tts] - Attempting to retrieve TTS audio from cache...
2024-10-29 09:32:10.252 DEBUG (MainThread) [custom_components.chime_tts] ...no cached TTS audio found
2024-10-29 09:32:10.255 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-10-29 09:32:10.255 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'tts.piper'
2024-10-29 09:32:10.255 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Here's your reminder to take out the trash.'
2024-10-29 09:32:10.255 DEBUG (MainThread) [custom_components.chime_tts] * cache = True
2024-10-29 09:32:10.255 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-10-29 09:32:10.255 DEBUG (MainThread) [custom_components.chime_tts] * options = {'voice': 'en_US-hfc_female-medium'}
2024-10-29 09:32:10.701 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 450.0ms
2024-10-29 09:32:10.701 DEBUG (MainThread) [custom_components.chime_tts] - Saving generated TTS audio to cache...
2024-10-29 09:32:10.773 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/nux6dxfx.mp3
2024-10-29 09:32:10.773 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-29 09:32:10.773 DEBUG (MainThread) [custom_components.chime_tts] - key: "3fd0acdd0f7b8241d8d19c20cff52234fd14982abe70518f8391d3a29bf0de30"
2024-10-29 09:32:10.773 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'local_path': '/media/sounds/temp/chime_tts/nux6dxfx.mp3', 'audio_duration': 2.267}"
2024-10-29 09:32:10.775 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio saved to cache
2024-10-29 09:32:10.775 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - ...changing TTS playback speed to 95.0% of original
2024-10-29 09:32:10.851 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/temp_segment.mp3
2024-10-29 09:32:10.851 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFmpeg operation: "ffmpeg -i /media/sounds/temp/chime_tts/temp_segment.mp3 -af atempo=0.95 /media/sounds/temp/chime_tts/temp_segment_converted.mp3"
2024-10-29 09:32:11.030 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-10-29 09:32:11.123 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/mln2hnhz.mp3
2024-10-29 09:32:11.123 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-10-29 09:32:11.123 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Running FFmpeg operation: "ffmpeg -i /config/www/chime_tts/mln2hnhz.mp3 -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -filter:a volume=1.25 /config/www/chime_tts/mln2hnhz_converted.mp3"
2024-10-29 09:32:11.208 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-10-29 09:32:11.311 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/mln2hnhz.mp3'
2024-10-29 09:32:11.311 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-10-29 09:32:11.311 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 3.458
2024-10-29 09:32:11.311 DEBUG (MainThread) [custom_components.chime_tts] * local_path = None
2024-10-29 09:32:11.311 DEBUG (MainThread) [custom_components.chime_tts] * public_path = "https://ha.lloydnet.org/local/chime_tts/mln2hnhz.mp3"
2024-10-29 09:32:11.311 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = None
2024-10-29 09:32:11.313 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/mln2hnhz.mp3'
2024-10-29 09:32:11.313 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-10-29 09:32:11.313 DEBUG (MainThread) [custom_components.chime_tts] - key: "a3e77a8ab3f211816214251968494c95e876f607421ddcf86df7fcce26b31fa3"
2024-10-29 09:32:11.313 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': 'https://ha.lloydnet.org/local/chime_tts/mln2hnhz.mp3', 'audio_duration': 3.458}"
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Chime TTS playback │
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts] 2 Alexa media players detected:
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts] - media_player.bedroom_echo
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kitchen_echo
2024-10-29 09:32:11.314 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local file path for external URL is '/config/www/chime_tts/mln2hnhz.mp3'
2024-10-29 09:32:11.356 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-10-29 09:32:11.356 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src='https://ha.lloydnet.org/local/chime_tts/mln2hnhz.mp3'/>
2024-10-29 09:32:11.356 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-10-29 09:32:11.356 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.bedroom_echo', 'media_player.kitchen_echo']
2024-10-29 09:32:11.357 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 3.458s for audio playback to complete...
2024-10-29 09:32:14.818 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 2 media_players aren't playing...
2024-10-29 09:32:14.818 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.bedroom_echo
2024-10-29 09:32:14.818 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.kitchen_echo
2024-10-29 09:32:14.818 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭───────────────────────────────────────────╮
2024-10-29 09:32:14.818 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say Completed in 4.68 s ────│
2024-10-29 09:32:14.818 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰───────────────────────────────────────────╯
Since installing 1.1.6-beta5, I haven't had a single "Simon says" error and I'm able to play to Google and Alexa devices! 😃 Thank you so much!!
Hey Jesse, i'm glad to hear it's now working properly for you on all your devices! 👍 Thank you too for your patience and assistance in fixing the issue 🙏
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 4993 Installed Version | 2.0.1 Stage | running Available Repositories | 1425 Downloaded Repositories | 45Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | April 13, 2025 at 7:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true remote_server | us-east-1-1.ui.nabu.casa certificate_status | ready instance_id | 70049538375a4c47910056f2728e678a can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okDashboards
dashboards | 7 -- | -- resources | 28 views | 44 mode | storageRecorder
oldest_recorder_run | May 31, 2024 at 12:05 PM -- | -- current_recorder_run | September 25, 2024 at 9:11 PM estimated_db_size | 11812.54 MiB database_engine | sqlite database_version | 3.45.3Checklist
Describe the issue
When playing to multiple devices that include both an Alexa device and Google Home Mini, the sound plays fine on the Google device, but I get the dreaded "Simon Says" error on the Alexa devices.
I've double-checked the public URLs being sent to Alexa and they all work as expected (plus, it works if only using Alexa devices). I'm not seeing any major errors that jump out at me in the debug logs, either, so I'm stumped on this one ... Everything was working on 1.1.4b4, then stopped when I installed beta 6 as well as the stable 1.1.4 release (what I'm currently running).
Related Home Assistant config:
HA Version: 2024.9.3
Reproduction steps
Debug logs
Diagnostics dump
No response