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

I believe I have identified and fixed the issue, and released a new beta: v1.1.0-beta14.

Please upgrade to the new version and let me know if it resolves the issue :+1:

1 Like

Looks like you already updated to beta15, I used that version.

Wow, I reckon you got it. announce: true works perfectly on my single sonos speaker with music playing and without. I’ll test multi-speaker if i get some time tomorrow.

Not that it affects me, but could you check announce: false? One small volume bug - I think you should stop the media before changing the volume, or if you already do then maybe give it a small delay to apply. When announce: false (where you’re replacing media) and music playing, there’s 1 second of loud music before it stops, and then the chime plays. Like i said - doesn’t affect me, but some people might want this.

Amazing work :smiley:

J

Hi are there any docker (compose) users? I’m struggling to get this work and looking for a good example of the configuration. It plays the “end_chime_path” but doesn’t react on “chime_path” or the “message”.

I get errors like:
- Error calling tts.async_get_media_source_audio: Failed to connect. Probable cause: Unknown

homeassistant.components.media_source.error.Unresolvable: Unknown source directory.

how a part of my docker compose looks like:

    volumes:
      - /share/hass:/config
      - /share/backup/media:/media

I created the following folders there:
image

How the home assistant config looks like:

homeassistant:
  packages: !include_dir_named packages
  media_dirs:
    media: /media
  allowlist_external_dirs:
    - /media

and the chime config:
image
I’ve tried almost everything (I think) so any help is appreciated. What am I missing?

If you hear playback of the end_chime_path file then it seems like your setup is at least partially correct.

Could you please enable debug logging for Chime TTS and provide the logs?

Hm after a long time of changing a lot of things in hope to solve the issue, the end chime isnt doing anything either.

2024-06-14 16:42:36.455 DEBUG (MainThread) [custom_components.chime_tts]      - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/sh8x8171.mp3
2024-06-14 16:42:36.455 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.play_media (c:01J0BK6K9754HX2Q2C0ANNFVBG): entity_id=['media_player.woonkamer'], announce=False, extra=, media_type=music, media_id=media-source://media_source/local/sounds/temp/chime_tts/sh8x8171.mp3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 674, in async_play_media
    sourced_media = await media_source.async_resolve_media(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 172, in async_resolve_media
    return await item.async_resolve()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_source/models.py", line 84, in async_resolve
    return await self.async_media_source().async_resolve_media(self)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_source/local_source.py", line 79, in async_resolve_media
    source_dir_id, location = self.async_parse_identifier(item)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_source/local_source.py", line 65, in async_parse_identifier
    raise Unresolvable("Unknown source directory.")
homeassistant.components.media_source.error.Unresolvable: Unknown source directory.

Can you please enable debug logging so that I might be able to understand more?

  1. Turn on debug logging:

    service: logger.set_level
    data:
      custom_components.chime_tts: debug
    
  2. Call the service chime_tts.say again.

  3. Check your log messages in Home Assistant:

    https://{YOUR_HOME_ASSISTANT_ADDRESS}:8123/config/logs?filter=chime_tts
    

    and click LOAD FULL LOGS

Yes what I’ve tried:

service: chime_tts.say
target:
  entity_id: media_player.woonkamer
data:
  message: tesssttjeee
  tts_platform: tts.google_nl_com

nothing happens except the device starts

2024-06-14 19:30:50.168 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-14 19:30:50.168 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.0-beta15 -----
2024-06-14 19:30:50.168 INFO (MainThread) [custom_components.chime_tts.helpers.media_player] Turning on "media_player.woonkamer"...
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * entity_ids = ['media_player.woonkamer']
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * message = tesssttjeee
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * final_delay = 0.0
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * offset = 450.0
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * cache = False
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * volume_level = -1
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * fade_audio = False
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * announce = False
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_pitch = 0
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_speed = 100.0
2024-06-14 19:30:50.169 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_platform = tts.google_nl_com
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: -1.0
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: -1.0
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: cast
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: entity_id: media_player.woonkamer
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * media_players_array:
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * unjoin_players = False
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * join_players = False
2024-06-14 19:30:50.172 DEBUG (MainThread) [custom_components.chime_tts]     * options = {}
2024-06-14 19:30:50.172 DEBUG (MainThread) [custom_components.chime_tts]     * language = None
2024-06-14 19:30:50.172 DEBUG (MainThread) [custom_components.chime_tts]     * cache = False
2024-06-14 19:30:50.172 DEBUG (MainThread) [custom_components.chime_tts]     * message = 'tesssttjeee'
2024-06-14 19:30:50.172 DEBUG (MainThread) [custom_components.chime_tts]     * tts_platform = 'tts.google_nl_com'
2024-06-14 19:30:50.172 DEBUG (MainThread) [custom_components.chime_tts]  - Generating new TTS audio with parameters:
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-06-14 19:30:50.170 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-06-14 19:30:50.222 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Audio has no duration
2024-06-14 19:30:50.222 WARNING (MainThread) [custom_components.chime_tts] Error generating TTS audio from messsage segment #1: {'type': 'tts', 'message': 'tesssttjeee'}
2024-06-14 19:30:50.222 ERROR (MainThread) [custom_components.chime_tts]    - Error calling tts.async_get_media_source_audio: Failed to connect. Probable cause: Unknown
2024-06-14 19:30:50.222 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Unable to generate local audio file
2024-06-14 19:30:50.222 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 50.0 ms -----

It looks like the issue might be with Home Assistant’s tts component failing to generate TTS audio.

Are you able to successfully generate TTS audio with tts.google_nl_com, independent of Chime TTS? Eg:

service: tts.speak
data:
  media_player_entity_id: media_player.woonkamer
  message: test
target:
  entity_id: tts.google_nl_com

I am also getting errors in my logs. I am on v 1.0.0
I see there is a beta 15.
How do I find it and do I then just reinstall?

To install the new beta 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 (it may take a moment to update the list)
  5. Select version v1.1.0-beta15 from the updated version drop-down list
  6. Restart Home Assistant

Thank you. I love this integration.

1 Like

With the Beta 15 they were fixes as before the Announce and Fade were just switching off the music and no TTS was being heard unless you run it again. The only thing is not working is the resume of my media after a TTS. I tried with spotify and also a stream from Tune in. It just fades the sound, make the TTS and put the volume back as it was and that is. I use Google speakers.
Thanks

Hi @Leon047m.

Chime TTS can only resume previously playing audio if the media player’s integration either:

  1. Supports (natively) the announce feature, such as the Sonos integration, or
  2. Keeps a reference to the last playing audio, such as the AppleTV integration (e.g: HomePods)

I don’t have any Google speakers so I can’t test this, but given that playback is not being resumed, I would guess the integration doesn’t support either of the above features.

Have you been able to resume the audio in any other way on Home Assistant (another integration, etc.)?

Thanks for your reply.

Unfortunately, I haven’t managed to test the integration yet. To be honest, I’m not sure which integration to test. I’ve been using HA for the past three weeks and am still experimenting with it, but if I manage to get it working, I will let you know.

On the other hand, I really appreciate your effort on the app. It is fun to use, and since reading your documentation, I’ve been trying different scenarios.

Very well done, and keep it up!

2 Likes

I’m only new to HA, but this doesn’t seem to work for me.

Using the latest version with Google speakers, Chime just activates them. No TTS or audio file playback.

But I guess without Google speakers you’re going to struggle to troubleshoot this one :frowning:

Hey @5quirrel, could you please enable debug logging and send me the log messages after calling chime_tts.say?

You can follow these instructions to enable debug logging.

I also use Google speakers, everything works perfectly up to version 1.1.0 Beta 15. In the later versions, nothing can be heard (effects and TTS); it seems that only the volume change works. I hope this can be helpful to you and the developer.

Hi @maxyge, i’m sorry you’ve been experiencing this issue.

Could you please enable debug logging, call chime_tts.say again and send me the debug log messages?

Thank you for the support. Below is the test service I used and the two logs: one with version v1.1.2 that doesn’t work and then I rolled back to version 1.1.0 Beta 15 which works:

chime_tts.say
data:
  chime_path: bells
  end_chime_path: bells_2
  volume_level: 1
  message: Buongiorno !
  tts_platform: google_translate
target:
  entity_id: media_player.google_home_mini

Log :

2024-06-23 17:56:45.783 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.2 -----
2024-06-23 17:56:45.784 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-23 17:56:45.784 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.2 -----
2024-06-23 17:56:45.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-23 17:56:45.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.google_home_mini']
2024-06-23 17:56:45.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = bells
2024-06-23 17:56:45.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * end_chime_path = bells_2
2024-06-23 17:56:45.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-06-23 17:56:45.785 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-06-23 17:56:45.786 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-06-23 17:56:45.786 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Buongiorno !
2024-06-23 17:56:45.786 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = google_translate
2024-06-23 17:56:45.786 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-06-23 17:56:45.786 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-06-23 17:56:45.786 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 1
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.google_home_mini
2024-06-23 17:56:45.787 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: cast
2024-06-23 17:56:45.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 1.0
2024-06-23 17:56:45.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: 1
2024-06-23 17:56:45.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-23 17:56:45.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-23 17:56:45.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-23 17:56:45.790 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/bells.mp3
2024-06-23 17:56:45.790 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/bells.mp3"...
2024-06-23 17:56:46.073 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.944s
2024-06-23 17:56:46.078 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-06-23 17:56:46.079 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'google_translate'
2024-06-23 17:56:46.079 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Buongiorno !'
2024-06-23 17:56:46.079 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-06-23 17:56:46.079 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-06-23 17:56:46.079 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-06-23 17:56:46.351 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 280.0ms
2024-06-23 17:56:46.355 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/bells_2.mp3
2024-06-23 17:56:46.355 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/bells_2.mp3"...
2024-06-23 17:56:46.630 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.279s
2024-06-23 17:56:46.652 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /config/None/media/sounds/temp/chime_tts/...
2024-06-23 17:56:47.010 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/None/media/sounds/temp/chime_tts/bplmm8_i.mp3
2024-06-23 17:56:47.306 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 4.347
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/config/None/media/sounds/temp/chime_tts/bplmm8_i.mp3"
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] * public_path = None
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/bplmm8_i.mp3"
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-23 17:56:47.307 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] 1 Regular media player detected:
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] - media_player.google_home_mini
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.google_home_mini']
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-06-23 17:56:47.308 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/bplmm8_i.mp3
2024-06-23 17:56:47.317 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 4.347s for audio playback to complete...
2024-06-23 17:56:51.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...
2024-06-23 17:56:51.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.google_home_mini
2024-06-23 17:56:51.673 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 5.89 s -----

Log with rollback:

2024-06-23 18:06:32.666 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.0-beta15 -----

2024-06-23 18:06:32.666 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----

2024-06-23 18:06:32.666 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.google_home_mini']

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = bells

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * end_chime_path = bells_2

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = Buongiorno !

2024-06-23 18:06:32.667 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = google_translate

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 1

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False

2024-06-23 18:06:32.668 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:

2024-06-23 18:06:32.669 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.google_home_mini

2024-06-23 18:06:32.669 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: cast

2024-06-23 18:06:32.669 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 1.0

2024-06-23 18:06:32.669 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: 1

2024-06-23 18:06:32.669 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False

2024-06-23 18:06:32.672 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False

2024-06-23 18:06:32.672 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False

2024-06-23 18:06:32.673 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/bells.mp3

2024-06-23 18:06:32.673 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/bells.mp3"...

2024-06-23 18:06:32.964 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 0.944s

2024-06-23 18:06:32.969 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:

2024-06-23 18:06:32.970 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'google_translate'

2024-06-23 18:06:32.971 DEBUG (MainThread) [custom_components.chime_tts] * message = 'Buongiorno !'

2024-06-23 18:06:32.971 DEBUG (MainThread) [custom_components.chime_tts] * cache = False

2024-06-23 18:06:32.971 DEBUG (MainThread) [custom_components.chime_tts] * language = None

2024-06-23 18:06:32.971 DEBUG (MainThread) [custom_components.chime_tts] * options = {}

2024-06-23 18:06:33.249 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 280.0ms

2024-06-23 18:06:33.254 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/bells_2.mp3

2024-06-23 18:06:33.254 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/bells_2.mp3"...

2024-06-23 18:06:33.544 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.279s

2024-06-23 18:06:33.562 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /media/sounds/temp/chime_tts/...

2024-06-23 18:06:33.901 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/c1a1dx1h.mp3

2024-06-23 18:06:34.213 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:

2024-06-23 18:06:34.213 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 4.347

2024-06-23 18:06:34.213 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/media/sounds/temp/chime_tts/c1a1dx1h.mp3"

2024-06-23 18:06:34.213 DEBUG (MainThread) [custom_components.chime_tts] * public_path = None

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/c1a1dx1h.mp3"

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] ****************************

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] ****************************

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] **************************

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] **************************

2024-06-23 18:06:34.214 DEBUG (MainThread) [custom_components.chime_tts] 1 Regular media player detected:

2024-06-23 18:06:34.215 DEBUG (MainThread) [custom_components.chime_tts] - media_player.google_home_mini

2024-06-23 18:06:34.215 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:

2024-06-23 18:06:34.215 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.google_home_mini']

2024-06-23 18:06:34.215 DEBUG (MainThread) [custom_components.chime_tts] - announce: False

2024-06-23 18:06:34.215 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music

2024-06-23 18:06:34.215 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/c1a1dx1h.mp3

2024-06-23 18:06:34.221 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 4.347s for audio playback to complete...

2024-06-23 18:06:38.572 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...

2024-06-23 18:06:39.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.google_home_mini

2024-06-23 18:06:39.580 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 6.91 s -----

Thank you for the debug logs :+1:

It appears to be the same issue as reported in this GitHub issue.

I hope to have a beta release shortly which will address the issue.