The behavior is now inconsistent and unpredictable on v1.1.4-beta3. With cache: true
it works sometimes, but other times it will only play on the Sonos speakers and not on the Alexa speakers at all, or the message may play on the Alexa speakers but several minutes after the service was called. Other times I get the Simon Says error message. No difference in the YAML.
2024-07-05 08:12:23.618 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-07-05 08:12:23.618 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-07-05 08:12:23.618 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-07-05 08:12:23.618 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] 1 Sonos media player detected:
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] - media_player.basement_bedroom
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_2nd_echo_dot
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.basement_bedroom']
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-07-05 08:12:23.619 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/kquxm20n.mp3
2024-07-05 08:12:23.622 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-07-05 08:12:23.623 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://hidden.site//local/chime_tts/16uh9wjf.mp3"/>
2024-07-05 08:12:23.623 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-07-05 08:12:23.629 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.michael_s_2nd_echo_dot']
2024-07-05 08:12:23.630 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 3.672s for audio playback to complete...
2024-07-05 08:12:27.305 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 2 media_players aren't playing...
2024-07-05 08:12:27.305 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.michael_s_2nd_echo_dot
2024-07-05 08:12:27.910 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.basement_bedroom
2024-07-05 08:12:27.911 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 4.88 s -----
2024-07-05 08:12:57.456 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.4-beta3 -----
2024-07-05 08:12:57.457 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-07-05 08:12:57.459 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-07-05 08:12:57.460 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-07-05 08:12:57.460 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.michael_s_echo
2024-07-05 08:12:57.460 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.michael_s_4th_echo_dot
2024-07-05 08:12:57.460 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 2: media_player.basement_bedroom
2024-07-05 08:12:57.460 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 3: media_player.michael_s_echo_dot
2024-07-05 08:12:57.461 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 4: media_player.michael_s_3rd_echo_dot
2024-07-05 08:12:57.461 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 5: media_player.michael_s_2nd_echo_dot
2024-07-05 08:12:57.461 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 6: media_player.kids_bedroom
2024-07-05 08:12:57.461 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/custom_audio/Alexa_Notification.mp3
2024-07-05 08:12:57.461 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-07-05 08:12:57.461 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-07-05 08:12:57.462 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-07-05 08:12:57.462 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = It's time to take out the trash
2024-07-05 08:12:57.462 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-07-05 08:12:57.462 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-07-05 08:12:57.463 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-07-05 08:12:57.464 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-07-05 08:12:57.464 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-07-05 08:12:57.464 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-07-05 08:12:57.464 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-07-05 08:12:57.464 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-07-05 08:12:57.465 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-07-05 08:12:57.465 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.michael_s_echo
2024-07-05 08:12:57.465 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-07-05 08:12:57.465 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.3
2024-07-05 08:12:57.465 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.465 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.466 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-07-05 08:12:57.466 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-07-05 08:12:57.466 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.michael_s_4th_echo_dot
2024-07-05 08:12:57.466 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-07-05 08:12:57.466 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.23
2024-07-05 08:12:57.466 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 2: entity_id: media_player.basement_bedroom
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.17
2024-07-05 08:12:57.467 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: True
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: True
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 3: entity_id: media_player.michael_s_echo_dot
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.468 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.469 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-07-05 08:12:57.469 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-07-05 08:12:57.469 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 4: entity_id: media_player.michael_s_3rd_echo_dot
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.27
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 5: entity_id: media_player.michael_s_2nd_echo_dot
2024-07-05 08:12:57.470 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-07-05 08:12:57.472 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-07-05 08:12:57.472 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 6: entity_id: media_player.kids_bedroom
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.21
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: True
2024-07-05 08:12:57.473 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: True
2024-07-05 08:12:57.474 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-07-05 08:12:57.474 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-07-05 08:12:57.556 DEBUG (MainThread) [custom_components.chime_tts] Cached audio found:
2024-07-05 08:12:57.556 DEBUG (MainThread) [custom_components.chime_tts] - public_path = "https://hidden.site//local/chime_tts/v0ocqf0i.mp3"
2024-07-05 08:12:57.556 DEBUG (MainThread) [custom_components.chime_tts] - audio_duration = 4.584
2024-07-05 08:12:57.556 DEBUG (MainThread) [custom_components.chime_tts] - local_path = "/media/sounds/temp/chime_tts/v0ocqf0i.mp3"
2024-07-05 08:12:57.556 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/v0ocqf0i.mp3"
2024-07-05 08:12:57.556 DEBUG (MainThread) [custom_components.chime_tts] Apply audio conversion
2024-07-05 08:12:57.558 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /media/sounds/temp/chime_tts/v0ocqf0i.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /media/sounds/temp/chime_tts/v0ocqf0i_converted.mp3"
2024-07-05 08:12:57.827 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /config/www/chime_tts/v0ocqf0i.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/v0ocqf0i_converted.mp3"
2024-07-05 08:12:58.081 DEBUG (MainThread) [custom_components.chime_tts] ...cached audio found
2024-07-05 08:12:58.081 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] 2 Sonos media players detected:
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] - media_player.basement_bedroom
2024-07-05 08:12:58.082 DEBUG (MainThread) [custom_components.chime_tts] - media_player.kids_bedroom
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] 5 Alexa media players detected:
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_echo
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_4th_echo_dot
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_echo_dot
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_3rd_echo_dot
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_2nd_echo_dot
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-07-05 08:12:58.083 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.basement_bedroom', 'media_player.kids_bedroom']
2024-07-05 08:12:58.084 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-07-05 08:12:58.084 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-07-05 08:12:58.084 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/v0ocqf0i.mp3
2024-07-05 08:12:58.085 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-07-05 08:12:58.085 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://hidden.site//local/chime_tts/v0ocqf0i.mp3"/>
2024-07-05 08:12:58.085 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-07-05 08:12:58.085 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.michael_s_echo', 'media_player.michael_s_4th_echo_dot', 'media_player.michael_s_echo_dot', 'media_player.michael_s_3rd_echo_dot', 'media_player.michael_s_2nd_echo_dot']
2024-07-05 08:12:58.088 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 4.584s for audio playback to complete...
2024-07-05 08:13:02.679 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 7 media_players aren't playing...
2024-07-05 08:13:02.680 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.michael_s_echo
2024-07-05 08:13:02.680 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.michael_s_4th_echo_dot
2024-07-05 08:13:02.680 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.michael_s_echo_dot
2024-07-05 08:13:02.680 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.michael_s_3rd_echo_dot
2024-07-05 08:13:02.681 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.michael_s_2nd_echo_dot
2024-07-05 08:13:03.292 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.basement_bedroom
2024-07-05 08:13:03.497 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ā media_player.kids_bedroom
2024-07-05 08:13:03.498 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 6.04 s -----```