Updated HA and ChimeTTS at the same time.
Happy to report that thus far it is all working fantastically.
I have a quick question,
service: chime_tts.say
metadata: {}
data:
delay: 100
final_delay: 250
tts_playback_speed: 100
volume: 0.9
message:
- type: chime
path: custom_chime_path_1
- type: tts
message: "{{ tod }} Andy!"
cache: true
- type: delay
length: 450
- type: tts
message: "{{ temperature }}"
cache: true
- type: tts
message: "{{ weather }}"
cache: true
- type: tts
message: The forecast today is
cache: true
- type: tts
message: "{{ forecast }}"
- type: delay
length: 500
- type: tts
message: "{{ calendar }}"
- type: delay
length: 2000
tts_platform: tts.piper
target:
entity_id: "{{ media_player }}"
I changed delay:450
to delay:100
because although it is considered to be the starting delay - in the GUI, it seems to be reapplied between segments. For example:
- type: tts
message: "{{ temperature }}"
cache: true
- type: tts
message: "{{ weather }}"
cache: true
- type: tts
message: The forecast today is
cache: true
- type: tts
message: "{{ forecast }}"
- type: delay
length: 500
The pauses between these files, which have been cached at this point, was a bit irritating, but changing the global delay
to 100 has made this much more palatable. Is this intended behaviour? As the docs suggested that value was just a delay before the audio started?
Hereās some logs in case anything pops up, but all I can see is the difference between the audio file with the initial 450ms delay and the second one with the 100ms delay, is clearly more than half a second.
2024-01-06 22:33:59.274 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.1-beta2 -----
2024-01-06 22:33:59.274 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 22:33:59.274 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * entity_ids = ['media_player.livingroom_smart_display']
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * chime_path =
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * end_chime_path =
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * delay = 450.0
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * message = [{'type': 'chime', 'path': 'custom_chime_path_1'}, {'type': 'tts', 'message': 'Good Night Andy!', 'cache': True}, {'type': 'delay', 'length': 450}, {'type': 'tts', 'message': 'It is currently -2 degrees,', 'cache': True}, {'type': 'tts', 'message': 'and Clear.', 'cache': True}, {'type': 'tts', 'message': 'The forecast today is', 'cache': True}, {'type': 'tts', 'message': 'Partly Cloudy with a high of 4 and a low of -2'}, {'type': 'delay', 'length': 500}, {'type': 'tts', 'message': 'You are on cat sitting duty today.'}, {'type': 'delay', 'length': 2000}]
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = tts.piper
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * tts_playback_speed = 100.0
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * announce = False
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * volume_level = -1.0
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * join_players = False
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] * unjoin_players = False
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 22:33:59.275 DEBUG (MainThread) [custom_components.chime_tts] Invalid audio filepath provided
2024-01-06 22:33:59.278 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("/media/notify/pa_announce.mp3", 450.0, audio)
2024-01-06 22:33:59.278 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/media/notify/pa_announce.mp3"...
2024-01-06 22:33:59.422 DEBUG (MainThread) [custom_components.chime_tts] - ...retrieved successfully. Audio duration: 2.438s
2024-01-06 22:33:59.422 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='Good Night Andy!', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:33:59.422 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:33:59.561 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 139.209 ms
2024-01-06 22:33:59.565 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='It is currently -2 degrees,', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:33:59.565 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:33:59.683 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 118.185 ms
2024-01-06 22:33:59.690 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='and Clear.', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:33:59.690 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:33:59.803 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 113.122 ms
2024-01-06 22:33:59.807 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='The forecast today is', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:33:59.807 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:33:59.930 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 123.083 ms
2024-01-06 22:33:59.936 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='Partly Cloudy with a high of 4 and a low of -2', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:33:59.936 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:34:00.069 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 132.715 ms
2024-01-06 22:34:00.079 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='You are on cat sitting duty today.', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:34:00.080 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:34:00.655 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 575.4780000000001 ms
2024-01-06 22:34:00.668 DEBUG (MainThread) [custom_components.chime_tts] - Final audio created. Duration: 20.804s
2024-01-06 22:34:00.668 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file...
2024-01-06 22:34:00.668 DEBUG (MainThread) [custom_components.chime_tts] - Audio folder exists: /media/sounds/temp/chime_tts/
2024-01-06 22:34:01.076 DEBUG (MainThread) [custom_components.chime_tts] - Filepath = '/media/sounds/temp/chime_tts/y9kwpys0.mp3'
2024-01-06 22:34:01.076 DEBUG (MainThread) [custom_components.chime_tts] - File saved successfully
2024-01-06 22:34:01.076 DEBUG (MainThread) [custom_components.chime_tts] - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/y9kwpys0.mp3', 'audio_duration': 20.804}
2024-01-06 22:34:01.076 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 22:34:01.076 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-01-06 22:34:01.076 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/y9kwpys0.mp3
2024-01-06 22:34:01.077 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.livingroom_smart_display']
2024-01-06 22:34:01.738 DEBUG (MainThread) [custom_components.chime_tts] ...media_player.play_media completed.
2024-01-06 22:34:01.739 DEBUG (MainThread) [custom_components.chime_tts] Waiting 20.804s for audio playback to complete...
2024-01-06 22:34:22.545 DEBUG (MainThread) [custom_components.chime_tts] Waiting 0.25s for final_delay to complete...
2024-01-06 22:34:22.796 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 23521.14 ms -----
2024-01-06 22:34:22.796 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 22:34:22.796 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
2024-01-06 22:35:53.421 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v0.11.1-beta2 -----
2024-01-06 22:35:53.421 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-06 22:35:53.421 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-06 22:35:53.423 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-06 22:35:53.423 DEBUG (MainThread) [custom_components.chime_tts] * entity_ids = ['media_player.andylaptop_honor']
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * chime_path =
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * end_chime_path =
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * delay = 100.0
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * message = [{'type': 'chime', 'path': 'custom_chime_path_1'}, {'type': 'tts', 'message': 'Good Night Andy!', 'cache': True}, {'type': 'delay', 'length': 450}, {'type': 'tts', 'message': 'It is currently -2 degrees,', 'cache': True}, {'type': 'tts', 'message': 'and Clear.', 'cache': True}, {'type': 'tts', 'message': 'The forecast today is', 'cache': True}, {'type': 'tts', 'message': 'Partly Cloudy with a high of 4 and a low of -2'}, {'type': 'delay', 'length': 500}, {'type': 'tts', 'message': 'You are on cat sitting duty today.'}, {'type': 'delay', 'length': 2000}]
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = tts.piper
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * tts_playback_speed = 100.0
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * announce = False
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * volume_level = -1.0
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * join_players = False
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] * unjoin_players = False
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-06 22:35:53.424 DEBUG (MainThread) [custom_components.chime_tts] Invalid audio filepath provided
2024-01-06 22:35:53.427 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("/media/notify/pa_announce.mp3", 100.0, audio)
2024-01-06 22:35:53.428 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/media/notify/pa_announce.mp3"...
2024-01-06 22:35:53.549 DEBUG (MainThread) [custom_components.chime_tts] - ...retrieved successfully. Audio duration: 2.438s
2024-01-06 22:35:53.550 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='Good Night Andy!', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:35:53.550 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:35:53.662 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 112.456 ms
2024-01-06 22:35:53.666 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='It is currently -2 degrees,', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:35:53.666 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:35:53.781 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 115.075 ms
2024-01-06 22:35:53.786 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='and Clear.', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:35:53.786 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:35:54.145 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 359.56300000000005 ms
2024-01-06 22:35:54.149 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='The forecast today is', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:35:54.149 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:35:54.266 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 117.18900000000001 ms
2024-01-06 22:35:54.271 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='Partly Cloudy with a high of 4 and a low of -2', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:35:54.272 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:35:54.975 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 703.335 ms
2024-01-06 22:35:54.984 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='You are on cat sitting duty today.', tts_playback_speed=100.0, cache=False, language=None, options={})
2024-01-06 22:35:54.985 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-06 22:35:55.103 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 118.795 ms
2024-01-06 22:35:55.113 DEBUG (MainThread) [custom_components.chime_tts] - Final audio created. Duration: 18.75s
2024-01-06 22:35:55.113 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file...
2024-01-06 22:35:55.114 DEBUG (MainThread) [custom_components.chime_tts] - Audio folder exists: /media/sounds/temp/chime_tts/
2024-01-06 22:35:55.498 DEBUG (MainThread) [custom_components.chime_tts] - Filepath = '/media/sounds/temp/chime_tts/lhujhyr1.mp3'
2024-01-06 22:35:55.498 DEBUG (MainThread) [custom_components.chime_tts] - File saved successfully
2024-01-06 22:35:55.499 DEBUG (MainThread) [custom_components.chime_tts] - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/lhujhyr1.mp3', 'audio_duration': 18.75}
2024-01-06 22:35:55.499 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2024-01-06 22:35:55.499 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-01-06 22:35:55.499 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/lhujhyr1.mp3
2024-01-06 22:35:55.499 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.andylaptop_honor']
2024-01-06 22:35:55.528 DEBUG (MainThread) [custom_components.chime_tts] ...media_player.play_media completed.
2024-01-06 22:35:55.528 DEBUG (MainThread) [custom_components.chime_tts] Waiting 18.75s for audio playback to complete...
2024-01-06 22:36:14.280 DEBUG (MainThread) [custom_components.chime_tts] Waiting 0.25s for final_delay to complete...
2024-01-06 22:36:14.531 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 21107.648 ms -----
2024-01-06 22:36:14.531 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-06 22:36:14.531 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.