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

Hi @michel72, in the first YAML example you provided, does the music resume?

service: media_player.play_media
data:
  media_content_id: http://icecast.omroep.nl/radio2-bb-mp3
  media_content_type: audio/mp3
target:
  entity_id: media_player.google_nest_kantoor

Hi @Cameron_1871, I tried to set up the Edge TTS integration but was unable to get it running.

Have you tried calling chime_tts.say with the tts_platform value: edge_tts? If it works for you I will add it to the list of supported TTS platforms in the next release.

1 Like

Another user fixed this issue by adding the following YAML to their configurations.yaml file:

homeassistant:
  media_dirs:
    local: /media

No it doesn’t.

Hi @michel72, unfortunately not all speakers support resuming music after media playback from Home Assistant.
This is typically an issue with the manufacturer failing to provide support for the feature. You can search the forum to see if anyone else has succeeded to resume music for your same speaker, but until support is added i’m afraid this is outside the scope of Chime TTS.

Understood. According to the information I found Google Home/Nest speakers do support that feature, but that information was found on forums, so I don’t know how reliable that is.

If anyone knows for sure If google speakers support the announce (and therewith resume playback after tts) feature, please let me know. :slight_smile:

Yes, it works.
Thank you

Hi, I’m having issues using the join feature within chime_tts (on Sonos speakers), If I the disable join option the audio plays correctly, just out of sync as expected, when I enable the join option no audio plays at all and the following error(s) is logged:

WARNING (MainThread) [homeassistant.helpers.service] Referenced entities media_player.join_players_id are missing or not currently available

Here is the yaml thats not working as expected:

service: chime_tts.say
data:
  chime_path: custom_components/chime_tts/mp3s/bells.mp3
  delay: 450
  final_delay: 0
  tts_playback_speed: 100
  volume_level: 0.3
  message: test
  tts_platform: google_cloud
  join_players: true
  cache: true
target:
  entity_id:
    - media_player.kitchen
    - media_player.lounge

Using join and unjoin with the same speakers outside of chime_tts seems to function normally.

Any ideas ?

Hi @mikes77, sorry to hear you’re having issues. It might be helpful to have a bit more information. Could you please provide the following:

A. Debug Logs
Please enable debug logging for Chime TTS:

  1. Enable debug logging by calling this service:
service: logger.set_level
data:
  custom_components.chime_tts: debug
  1. With debugging now enabled, run the service call which isn’t working as expected.

  2. Navigate to your Home Assistant log: https://[YOUR_HA_INSTANCE]:8123/config/logs?filter=chime_tts

  3. Press the LOAD FULL LOGS button.

B. Successful Service Call YAML

Can you also please provide the YAML you use to successfully use join and unjoin outside of Chime TTS?

Great integration! Unfortunately it does not work with Yandex columns. Is it possible to add support for Yandex.TTS?

Hi @Ucsus, unfortunately I cannot test the Yandex TTS service as I am unable to register for an account.
I suggest you try calling the chime_tts.say service with yandextts as the tts_platform value, i.e:

service: chime_tts.say
data:
  chime_path: custom_components/chime_tts/mp3s/bells_2.mp3
  message: Test message
  tts_platform: yandextts
target:
  entity_id: media_player.living_room

Please let me know if it works for you. If it does I will add it to the TTS platforms list in an upcoming version.

Hi @Nimrod_Dolev, thank you for taking a look.

Here is the debug output:

2023-10-02 08:46:34.275 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration chime_tts which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-10-02 08:47:24.854 INFO (MainThread) [custom_components.chime_tts] The Chime TTS integration is set up.
2023-10-02 08:50:05.193 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2023-10-02 08:50:05.193 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2023-10-02 08:50:05.193 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called -----
2023-10-02 08:50:05.193 DEBUG (MainThread) [custom_components.chime_tts] * entity_ids = ['media_player.lounge', 'media_player.kitchen']
2023-10-02 08:50:05.193 DEBUG (MainThread) [custom_components.chime_tts] * hass = <homeassistant.core.HomeAssistant object at 0x7fcfd5bbe890>
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * chime_path = custom_components/chime_tts/mp3s/bells.mp3
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * delay = 450.0
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * message = test
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = google_cloud
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * tts_playback_speed = 100.0
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * volume_level = 0.12
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * join_players = True
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2023-10-02 08:50:05.194 DEBUG (MainThread) [custom_components.chime_tts] * announce = False
2023-10-02 08:50:05.195 DEBUG (MainThread) [custom_components.chime_tts] ------
2023-10-02 08:50:05.195 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2023-10-02 08:50:05.195 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells.mp3", 0, audio)
2023-10-02 08:50:05.196 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells.mp3"...
2023-10-02 08:50:05.583 DEBUG (MainThread) [custom_components.chime_tts] - ...audio with duration 0.944s retrieved successfully
2023-10-02 08:50:05.583 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(hass, tts_platform="google_cloud", message="test", cache="False", language="None", tld="None", gender="None", tts_playback_speed="100.0"))
2023-10-02 08:50:05.583 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2023-10-02 08:50:05.832 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 249.233 ms
2023-10-02 08:50:05.835 DEBUG (MainThread) [custom_components.chime_tts] - Final audio created:
2023-10-02 08:50:05.835 DEBUG (MainThread) [custom_components.chime_tts] - Duration = 2.114s
2023-10-02 08:50:05.835 DEBUG (MainThread) [custom_components.chime_tts] Creating final audio file
2023-10-02 08:50:05.837 DEBUG (MainThread) [custom_components.chime_tts] - Temp folder exists: /media/sounds/temp/chime_tts/
2023-10-02 08:50:05.838 DEBUG (MainThread) [custom_components.chime_tts] - Creating temporary mp3 file...
2023-10-02 08:50:05.840 DEBUG (MainThread) [custom_components.chime_tts] - temp_obj = <tempfile._TemporaryFileWrapper object at 0x7fcf9a640590>
2023-10-02 08:50:05.841 DEBUG (MainThread) [custom_components.chime_tts] - Filepath = '/media/sounds/temp/chime_tts/grtj8gv_.mp3'
2023-10-02 08:50:06.081 DEBUG (MainThread) [custom_components.chime_tts] - File saved successfully
2023-10-02 08:50:06.081 DEBUG (MainThread) [custom_components.chime_tts] - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/grtj8gv_.mp3', 'audio_duration': 2.114}
2023-10-02 08:50:06.081 DEBUG (MainThread) [custom_components.chime_tts] - Setting 'media_player.lounge' volume level to 0.12
2023-10-02 08:50:06.081 DEBUG (MainThread) [custom_components.chime_tts] - async_set_volume_level("media_player.lounge", 0.12)
2023-10-02 08:50:06.081 DEBUG (MainThread) [custom_components.chime_tts] - Seting volume_level of media player "media_player.lounge" to: 0.12
2023-10-02 08:50:06.155 DEBUG (MainThread) [custom_components.chime_tts] - Volume set
2023-10-02 08:50:06.155 DEBUG (MainThread) [custom_components.chime_tts] - Setting 'media_player.kitchen' volume level to 0.12
2023-10-02 08:50:06.155 DEBUG (MainThread) [custom_components.chime_tts] - async_set_volume_level("media_player.kitchen", 0.12)
2023-10-02 08:50:06.155 DEBUG (MainThread) [custom_components.chime_tts] - Seting volume_level of media player "media_player.kitchen" to: 0.12
2023-10-02 08:50:06.260 DEBUG (MainThread) [custom_components.chime_tts] - Volume set
2023-10-02 08:50:06.261 DEBUG (MainThread) [custom_components.chime_tts] - Calling media_player.join service for 2 media_player entities...
2023-10-02 08:50:06.261 DEBUG (MainThread) [custom_components.chime_tts] - Joining media_player entity: 'media_player.lounge'...
2023-10-02 08:50:06.275 DEBUG (MainThread) [custom_components.chime_tts] - ...done
2023-10-02 08:50:06.275 DEBUG (MainThread) [custom_components.chime_tts] - Joining media_player entity: 'media_player.kitchen'...
2023-10-02 08:50:06.281 DEBUG (MainThread) [custom_components.chime_tts] - ...done
2023-10-02 08:50:06.281 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2023-10-02 08:50:06.281 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2023-10-02 08:50:06.281 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/grtj8gv_.mp3
2023-10-02 08:50:06.281 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: media_player.join_players_id
2023-10-02 08:50:06.286 DEBUG (MainThread) [custom_components.chime_tts] ...media_player.play_media completed.
2023-10-02 08:50:06.286 DEBUG (MainThread) [custom_components.chime_tts] Waiting 2.114s for audio playback to complete...
2023-10-02 08:50:08.406 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.lounge's volume level to 0.2
2023-10-02 08:50:08.406 DEBUG (MainThread) [custom_components.chime_tts] - async_set_volume_level("media_player.lounge", 0.2)
2023-10-02 08:50:08.406 DEBUG (MainThread) [custom_components.chime_tts] - Seting volume_level of media player "media_player.lounge" to: 0.2
2023-10-02 08:50:08.433 DEBUG (MainThread) [custom_components.chime_tts] - Volume set
2023-10-02 08:50:08.433 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.kitchen's volume level to 0.2
2023-10-02 08:50:08.433 DEBUG (MainThread) [custom_components.chime_tts] - async_set_volume_level("media_player.kitchen", 0.2)
2023-10-02 08:50:08.434 DEBUG (MainThread) [custom_components.chime_tts] - Seting volume_level of media player "media_player.kitchen" to: 0.2
2023-10-02 08:50:08.460 DEBUG (MainThread) [custom_components.chime_tts] - Volume set
2023-10-02 08:50:08.460 DEBUG (MainThread) [custom_components.chime_tts] - Calling media_player.unjoin service for 2 media_player entities...
2023-10-02 08:50:08.460 DEBUG (MainThread) [custom_components.chime_tts] - Unjoining media plater entity: media_player.lounge...
2023-10-02 08:50:08.563 DEBUG (MainThread) [custom_components.chime_tts] - ...done
2023-10-02 08:50:08.564 DEBUG (MainThread) [custom_components.chime_tts] - Unjoining media plater entity: media_player.kitchen...
2023-10-02 08:50:08.667 DEBUG (MainThread) [custom_components.chime_tts] - ...done
2023-10-02 08:50:08.668 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 3474.7 ms -----
2023-10-02 08:50:08.669 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2023-10-02 08:50:08.669 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.

and here is the successful service call used to join/unjoin outside of chime_tts:

alias: speech
sequence:
  - service: media_player.join
    data:
      group_members:
        - media_player.lounge
        - media_player.kitchen
    target:
      entity_id:
        - media_player.kitchen
    enabled: true
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - service: media_player.unjoin
    data: {}
    target:
      entity_id:
        - media_player.kitchen
        - media_player.lounge
mode: single

Thank you @mikes77 for supplying the additional info :+1:
I will try to add a fix in the upcoming release, but as I don’t have speakers which can be joined, it makes it impossible for me to test the change, unfortunately.

Thank you @Nimrod_Dolev, I would be happy to test before you release the next version if that helps, otherwise I will report back once you have added the fix and pushed the next release.

Thanks for the work you’ve put into this integration.
Mike

Hi @mikes77. I’m taking you up on your kind offer :grinning:
I released a new beta version, v0.7.3-beta1, which I hope addresses the join feature.

To install the new version:

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

Thank you!

Hi @Nimrod_Dolev, of course no problem, your beta release has fixed the joining thank you !

Just FYI here is the debug output of the working join:

2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called -----
2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.kitchen_sonos', 'media_player.lounge_sonos']
2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts]  * hass = <homeassistant.core.HomeAssistant object at 0x7f657bd31ad0>
2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = custom_components/chime_tts/mp3s/bells.mp3
2023-10-03 09:39:50.288 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 450.0
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * message = test
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = google_cloud
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 100.0
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = 0.18
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = True
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts]  * announce = False
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts] ------
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2023-10-03 09:39:50.289 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells.mp3", 0, audio)
2023-10-03 09:39:50.294 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells.mp3"...
2023-10-03 09:39:50.686 DEBUG (MainThread) [custom_components.chime_tts]    - ...audio with duration 0.944s retrieved successfully
2023-10-03 09:39:50.686 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(hass, tts_platform="google_cloud", message="test", cache="False", language="None", tld="None", gender="None", tts_playback_speed="100.0"))
2023-10-03 09:39:50.686 DEBUG (MainThread) [custom_components.chime_tts]  - Generating TTS audio...
2023-10-03 09:39:51.093 DEBUG (MainThread) [custom_components.chime_tts]  - ...TTS audio completed in 407.209 ms
2023-10-03 09:39:51.095 DEBUG (MainThread) [custom_components.chime_tts]  - Final audio created:
2023-10-03 09:39:51.095 DEBUG (MainThread) [custom_components.chime_tts]    - Duration = 2.114s
2023-10-03 09:39:51.095 DEBUG (MainThread) [custom_components.chime_tts] Creating final audio file
2023-10-03 09:39:51.095 DEBUG (MainThread) [custom_components.chime_tts]    - Temp folder exists: /media/sounds/temp/chime_tts/
2023-10-03 09:39:51.096 DEBUG (MainThread) [custom_components.chime_tts]  - Creating temporary mp3 file...
2023-10-03 09:39:51.097 DEBUG (MainThread) [custom_components.chime_tts]    - temp_obj = <tempfile._TemporaryFileWrapper object at 0x7f65408d46d0>
2023-10-03 09:39:51.098 DEBUG (MainThread) [custom_components.chime_tts]    - Filepath = '/media/sounds/temp/chime_tts/vs_gn2i6.mp3'
2023-10-03 09:39:51.335 DEBUG (MainThread) [custom_components.chime_tts]    - File saved successfully
2023-10-03 09:39:51.336 DEBUG (MainThread) [custom_components.chime_tts]  - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/vs_gn2i6.mp3', 'audio_duration': 2.114}
2023-10-03 09:39:51.336 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.kitchen_sonos' volume level to 0.18
2023-10-03 09:39:51.336 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_sonos", 0.18)
2023-10-03 09:39:51.336 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.kitchen_sonos" to: 0.18
2023-10-03 09:39:51.373 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 09:39:51.373 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.lounge_sonos' volume level to 0.18
2023-10-03 09:39:51.373 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.lounge_sonos", 0.18)
2023-10-03 09:39:51.373 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.lounge_sonos" to: 0.18
2023-10-03 09:39:51.397 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 09:39:51.397 DEBUG (MainThread) [custom_components.chime_tts]  - Calling media_player.join service for 2 media_player entities...
2023-10-03 09:39:51.397 DEBUG (MainThread) [custom_components.chime_tts]  - Joining 2 media_player entities...
2023-10-03 09:39:52.336 DEBUG (MainThread) [custom_components.chime_tts]  - ...done
2023-10-03 09:39:52.336 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2023-10-03 09:39:52.336 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2023-10-03 09:39:52.336 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/vs_gn2i6.mp3
2023-10-03 09:39:52.337 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: media_player.kitchen_sonos
2023-10-03 09:39:52.913 DEBUG (MainThread) [custom_components.chime_tts] ...media_player.play_media completed.
2023-10-03 09:39:52.914 DEBUG (MainThread) [custom_components.chime_tts] Waiting 2.114s for audio playback to complete...
2023-10-03 09:39:55.029 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.kitchen_sonos's volume level to 0.2
2023-10-03 09:39:55.030 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_sonos", 0.2)
2023-10-03 09:39:55.030 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.kitchen_sonos" to: 0.2
2023-10-03 09:39:55.067 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 09:39:55.067 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.lounge_sonos's volume level to 0.2
2023-10-03 09:39:55.068 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.lounge_sonos", 0.2)
2023-10-03 09:39:55.068 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.lounge_sonos" to: 0.2
2023-10-03 09:39:55.105 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 09:39:55.106 DEBUG (MainThread) [custom_components.chime_tts]  - Calling media_player.unjoin service...
2023-10-03 09:39:55.891 DEBUG (MainThread) [custom_components.chime_tts]  - ...done
2023-10-03 09:39:55.892 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 5604.197 ms -----
2023-10-03 09:39:55.893 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2023-10-03 09:39:55.893 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.

Great! Thank you :+1:

It does appear that although the joining is functioning, once the announcement is played the status of the players are not resuming and they are staying joined/grouped together, so if other media was playing when the announcement went off it would never resume and the grouped players stay grouped.

The unjoining issue maybe a timing problem, if I only choose two players its mostly ok, more than 2 players in a group they don’t get un-joined, either way the previously playing media/song is never resumed.

Thank you,
Mike

Hi @mikes77. I released a second beta version, v0.7.3-beta2, which I hope addresses the unjoin issue.
I would appreciate your feedback, thank you.

They are now unjoining correctly, however right after the un-join it seems like there is a large delay even when using the Sonos app until control of any device is possible, feels like the app is freezing for a few seconds.

Heres the debug:

2023-10-03 11:11:30.955 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2023-10-03 11:11:30.955 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2023-10-03 11:11:30.956 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called -----
2023-10-03 11:11:30.956 DEBUG (MainThread) [custom_components.chime_tts]  * entity_ids = ['media_player.kitchen_sonos', 'media_player.lounge_sonos', 'media_player.basement_sonos', 'media_player.masterbathroom_sonos', 'media_player.masterbedroom_sonos']
2023-10-03 11:11:30.956 DEBUG (MainThread) [custom_components.chime_tts]  * hass = <homeassistant.core.HomeAssistant object at 0x7ff533e19fd0>
2023-10-03 11:11:30.956 DEBUG (MainThread) [custom_components.chime_tts]  * chime_path = custom_components/chime_tts/mp3s/bells.mp3
2023-10-03 11:11:30.956 DEBUG (MainThread) [custom_components.chime_tts]  * delay = 450.0
2023-10-03 11:11:30.956 DEBUG (MainThread) [custom_components.chime_tts]  * message = test.
2023-10-03 11:11:30.957 DEBUG (MainThread) [custom_components.chime_tts]  * tts_platform = google_cloud
2023-10-03 11:11:30.957 DEBUG (MainThread) [custom_components.chime_tts]  * tts_playback_speed = 100.0
2023-10-03 11:11:30.957 DEBUG (MainThread) [custom_components.chime_tts]  * volume_level = 0.12
2023-10-03 11:11:30.957 DEBUG (MainThread) [custom_components.chime_tts]  * join_players = True
2023-10-03 11:11:30.957 DEBUG (MainThread) [custom_components.chime_tts]  * cache = False
2023-10-03 11:11:30.958 DEBUG (MainThread) [custom_components.chime_tts]  * announce = False
2023-10-03 11:11:30.958 DEBUG (MainThread) [custom_components.chime_tts] ------
2023-10-03 11:11:30.958 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2023-10-03 11:11:30.959 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells.mp3", 0, audio)
2023-10-03 11:11:30.965 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells.mp3"...
2023-10-03 11:11:31.345 DEBUG (MainThread) [custom_components.chime_tts]    - ...audio with duration 0.944s retrieved successfully
2023-10-03 11:11:31.346 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(hass, tts_platform="google_cloud", message="test.", cache="False", language="None", tld="None", gender="None", tts_playback_speed="100.0"))
2023-10-03 11:11:31.346 DEBUG (MainThread) [custom_components.chime_tts]  - Generating TTS audio...
2023-10-03 11:11:31.608 DEBUG (MainThread) [custom_components.chime_tts]  - ...TTS audio completed in 262.146 ms
2023-10-03 11:11:31.609 DEBUG (MainThread) [custom_components.chime_tts]  - Final audio created:
2023-10-03 11:11:31.609 DEBUG (MainThread) [custom_components.chime_tts]    - Duration = 2.114s
2023-10-03 11:11:31.609 DEBUG (MainThread) [custom_components.chime_tts] Creating final audio file
2023-10-03 11:11:31.611 DEBUG (MainThread) [custom_components.chime_tts]    - Temp folder exists: /media/sounds/temp/chime_tts/
2023-10-03 11:11:31.611 DEBUG (MainThread) [custom_components.chime_tts]  - Creating temporary mp3 file...
2023-10-03 11:11:31.612 DEBUG (MainThread) [custom_components.chime_tts]    - temp_obj = <tempfile._TemporaryFileWrapper object at 0x7ff4f673d050>
2023-10-03 11:11:31.613 DEBUG (MainThread) [custom_components.chime_tts]    - Filepath = '/media/sounds/temp/chime_tts/v8_94axd.mp3'
2023-10-03 11:11:31.795 DEBUG (MainThread) [custom_components.chime_tts]    - File saved successfully
2023-10-03 11:11:31.795 DEBUG (MainThread) [custom_components.chime_tts]  - audio_dict = {'audio_path': '/media/sounds/temp/chime_tts/v8_94axd.mp3', 'audio_duration': 2.114}
2023-10-03 11:11:31.795 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.kitchen_sonos' volume level to 0.12
2023-10-03 11:11:31.795 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_sonos", 0.12)
2023-10-03 11:11:31.796 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.kitchen_sonos" to: 0.12
2023-10-03 11:11:31.926 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:31.926 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.lounge_sonos' volume level to 0.12
2023-10-03 11:11:31.926 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.lounge_sonos", 0.12)
2023-10-03 11:11:31.926 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.lounge_sonos" to: 0.12
2023-10-03 11:11:31.970 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:31.970 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.basement_sonos' volume level to 0.12
2023-10-03 11:11:31.970 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.basement_sonos", 0.12)
2023-10-03 11:11:31.970 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.basement_sonos" to: 0.12
2023-10-03 11:11:31.986 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:31.987 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.masterbathroom_sonos' volume level to 0.12
2023-10-03 11:11:31.987 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.masterbathroom_sonos", 0.12)
2023-10-03 11:11:31.987 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.masterbathroom_sonos" to: 0.12
2023-10-03 11:11:32.002 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:32.002 DEBUG (MainThread) [custom_components.chime_tts]  - Setting 'media_player.masterbedroom_sonos' volume level to 0.12
2023-10-03 11:11:32.002 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.masterbedroom_sonos", 0.12)
2023-10-03 11:11:32.002 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.masterbedroom_sonos" to: 0.12
2023-10-03 11:11:32.028 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:32.028 DEBUG (MainThread) [custom_components.chime_tts]  - Calling media_player.join service for 5 media_player entities...
2023-10-03 11:11:32.028 DEBUG (MainThread) [custom_components.chime_tts]  - Joining 5 media_player entities...
2023-10-03 11:11:33.585 DEBUG (MainThread) [custom_components.chime_tts]  - ...done
2023-10-03 11:11:33.586 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media service with data:
2023-10-03 11:11:33.586 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_type: music
2023-10-03 11:11:33.586 DEBUG (MainThread) [custom_components.chime_tts]  - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/v8_94axd.mp3
2023-10-03 11:11:33.586 DEBUG (MainThread) [custom_components.chime_tts]  - entity_id: media_player.kitchen_sonos
2023-10-03 11:11:33.666 DEBUG (MainThread) [custom_components.chime_tts] ...media_player.play_media completed.
2023-10-03 11:11:33.667 DEBUG (MainThread) [custom_components.chime_tts] Waiting 2.114s for audio playback to complete...
2023-10-03 11:11:35.782 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.kitchen_sonos's volume level to 0.2
2023-10-03 11:11:35.782 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.kitchen_sonos", 0.2)
2023-10-03 11:11:35.782 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.kitchen_sonos" to: 0.2
2023-10-03 11:11:35.808 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:35.808 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.lounge_sonos's volume level to 0.11
2023-10-03 11:11:35.808 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.lounge_sonos", 0.11)
2023-10-03 11:11:35.808 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.lounge_sonos" to: 0.11
2023-10-03 11:11:35.897 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:35.897 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.basement_sonos's volume level to 0.22
2023-10-03 11:11:35.897 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.basement_sonos", 0.22)
2023-10-03 11:11:35.897 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.basement_sonos" to: 0.22
2023-10-03 11:11:35.976 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:35.976 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.masterbathroom_sonos's volume level to 0.2
2023-10-03 11:11:35.976 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.masterbathroom_sonos", 0.2)
2023-10-03 11:11:35.976 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.masterbathroom_sonos" to: 0.2
2023-10-03 11:11:35.997 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:35.998 DEBUG (MainThread) [custom_components.chime_tts] Returning media_player.masterbedroom_sonos's volume level to 0.2
2023-10-03 11:11:35.998 DEBUG (MainThread) [custom_components.chime_tts]  - async_set_volume_level("media_player.masterbedroom_sonos", 0.2)
2023-10-03 11:11:35.998 DEBUG (MainThread) [custom_components.chime_tts]  - Seting volume_level of media player "media_player.masterbedroom_sonos" to: 0.2
2023-10-03 11:11:36.033 DEBUG (MainThread) [custom_components.chime_tts]  - Volume set
2023-10-03 11:11:36.033 DEBUG (MainThread) [custom_components.chime_tts]  - Calling media_player.unjoin service...
2023-10-03 11:11:36.033 DEBUG (MainThread) [custom_components.chime_tts]    - media_player.unjoin: media_player.kitchen_sonos
2023-10-03 11:11:37.806 DEBUG (MainThread) [custom_components.chime_tts]    ...done
2023-10-03 11:11:37.807 DEBUG (MainThread) [custom_components.chime_tts]    - media_player.unjoin: media_player.lounge_sonos
2023-10-03 11:11:39.419 DEBUG (MainThread) [custom_components.chime_tts]    ...done
2023-10-03 11:11:39.419 DEBUG (MainThread) [custom_components.chime_tts]    - media_player.unjoin: media_player.basement_sonos
2023-10-03 11:11:40.604 DEBUG (MainThread) [custom_components.chime_tts]    ...done
2023-10-03 11:11:40.605 DEBUG (MainThread) [custom_components.chime_tts]    - media_player.unjoin: media_player.masterbathroom_sonos
2023-10-03 11:11:41.605 DEBUG (MainThread) [custom_components.chime_tts]    ...done
2023-10-03 11:11:41.605 DEBUG (MainThread) [custom_components.chime_tts]    - media_player.unjoin: media_player.masterbedroom_sonos
2023-10-03 11:11:41.943 DEBUG (MainThread) [custom_components.chime_tts]    ...done
2023-10-03 11:11:41.945 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 10988.894999999999 ms -----
2023-10-03 11:11:41.945 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2023-10-03 11:11:41.945 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.