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

It appears to be the same error message as seen by others as far back as February (it’s not exclusive to the use of Chime TTS)

Gotcha. I haven’t messed with Sonos via HA until recently and its URL referenced chime_tts so was my assumption point. :slight_smile: Hope the code owner fixes soon.

Just installed Chimes TTS. Set an automation to notify when the clothes dryer is done. Automation runs - but Amazon Echo states - can not access skill.

During setup of the “service call”, Alexa Media Player which is installed, but is not an option in the TTS Platform dropdown. So if I understand, it then defaults to NABU CASA Cloud.

When using the “Notifications” option in the automation, amazon echo work fine
Have tested Alex Media Player in sending it text to speech and it works fine.

Help on this issue of no Alexa Media Player issue is appreciated.

Hi @dwdonnelly.

The Alexa Media Player is an integration which adds your Echo speakers into Home Assistant as media_player entities; it is not a TTS platform. You need to add TTS platforms separately.

The issue of the Echos stating that they cannot access the skill might be due to not having an external folder in Home Assistant which your Echos can access (they require public URLs to MP3 files).

Check that you have the following YAML in your configuration.yaml file:

homeassistant:
  external_url: "https://external_address:8123" # eg Nabu Casa address
  internal_url: "http://local_address:8123"

@dbullendsl might be able to expand more on this :+1:

Good Day,
Well checked and then added the external and internal urls you listed. Saved and reloaded config file. Unfortunately, this made no difference.

I also checked and added in the configuration YAML file:

# Example configuration.yaml entry to enable the cloud component
# This entry came from: https://www.home-assistant.io/integrations/cloud/
cloud:

and reloaded the YAML files and made sure I selected the NABU CASA TTS in the service call. Still no joy.

Now, to run a bit of a further test, I changed the volume in the service call…and the echo volume level changed. So, there is a connection there, of sorts.

My automation (this is for testing purposes to verify I get the service call right, then it gets copied to my actual automation):

alias: 1-New automation
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.dryer_vibration_sensor_moving
    to: "on"
    for:
      minutes: 3
condition: []
action:
  - wait_for_trigger:
      - platform: state
        entity_id:
          - binary_sensor.dryer_vibration_sensor_moving
        to: "off"
        for:
          minutes: 2
    continue_on_timeout: false
    enabled: false
  - service: chime_tts.say
    data:
      chime_path: ba_dum_tss
      message: The clothes dryer is done.
      volume_level: 0.22
      tts_platform: cloud
    target:
      device_id: 032d395d4649b5d88c5076efd806a306
mode: single

Thoughts?

Can you please enable debug logging and report back with the debug log messages?

Here you go:

2024-06-25 08:48:40.911 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-25 08:48:40.912 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-25 08:48:40.912 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-25 08:48:40.913 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * entity_ids = ['media_player.office_echo_dot']
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * chime_path = ba_dum_tss
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * cache = False
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * offset = 450.0
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * final_delay = 0.0
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * message = The clothes dryer is done.
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_platform = cloud
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_speed = 100.0
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_pitch = 0
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * announce = False
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * fade_audio = False
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * volume_level = 0.22
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * join_players = False
2024-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * unjoin_players = False
2024-06-25 08:48:40.914 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-06-25 08:48:40.914 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * media_players_array:
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: entity_id: media_player.office_echo_dot
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: alexa_media
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.22
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: 0.22
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: False
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: False
2024-06-25 08:48:40.915 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-06-25 08:48:40.917 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Local path to chime: /config/custom_components/chime_tts/mp3s/ba_dum_tss.mp3
2024-06-25 08:48:40.917 DEBUG (MainThread) [custom_components.chime_tts]  - Retrieving audio from path: "/config/custom_components/chime_tts/mp3s/ba_dum_tss.mp3"...
2024-06-25 08:48:41.200 DEBUG (MainThread) [custom_components.chime_tts]    ...audio retrieved. Duration: 2.403s
2024-06-25 08:48:41.202 DEBUG (MainThread) [custom_components.chime_tts]  - Generating new TTS audio with parameters:
2024-06-25 08:48:41.202 DEBUG (MainThread) [custom_components.chime_tts]     * tts_platform = 'cloud'
2024-06-25 08:48:41.202 DEBUG (MainThread) [custom_components.chime_tts]     * message = 'The clothes dryer is done.'
2024-06-25 08:48:41.202 DEBUG (MainThread) [custom_components.chime_tts]     * cache = False
2024-06-25 08:48:41.202 DEBUG (MainThread) [custom_components.chime_tts]     * language = None
2024-06-25 08:48:41.202 DEBUG (MainThread) [custom_components.chime_tts]     * options = {}
2024-06-25 08:48:42.967 DEBUG (MainThread) [custom_components.chime_tts]    ...TTS audio generated in 1.77s
2024-06-25 08:48:42.978 DEBUG (MainThread) [custom_components.chime_tts]  - Saving mp3 file to folder: /config/www/chime_tts/...
2024-06-25 08:48:43.299 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/ms37839u.mp3
2024-06-25 08:48:43.300 DEBUG (MainThread) [custom_components.chime_tts]   - Performing FFmpeg audio conversion...
2024-06-25 08:48:43.300 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /config/www/chime_tts/ms37839u.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/ms37839u_converted.mp3"
2024-06-25 08:48:43.561 DEBUG (MainThread) [custom_components.chime_tts]     ...FFmpeg audio conversion completed.
2024-06-25 08:48:43.788 DEBUG (MainThread) [custom_components.chime_tts]  - Saving data to chime_tts storage:
2024-06-25 08:48:43.788 DEBUG (MainThread) [custom_components.chime_tts]    - key:   "a52808401c1da8f2dce62f649b883615bb323b9a64db2a0d55eed3e24cf98533"
2024-06-25 08:48:43.788 DEBUG (MainThread) [custom_components.chime_tts]    - value: "{'public_path': '/config/www/chime_tts/ms37839u.mp3', 'audio_duration': 5.304, 'local_path': None}"
2024-06-25 08:48:43.792 DEBUG (MainThread) [custom_components.chime_tts]  - Chime TTS audio generated:
2024-06-25 08:48:43.792 DEBUG (MainThread) [custom_components.chime_tts]    * audio_duration = 5.304
2024-06-25 08:48:43.792 DEBUG (MainThread) [custom_components.chime_tts]    * local_path = None
2024-06-25 08:48:43.792 DEBUG (MainThread) [custom_components.chime_tts]    * public_path = "https://external_address:8123/local/chime_tts/ms37839u.mp3"
2024-06-25 08:48:43.792 DEBUG (MainThread) [custom_components.chime_tts]    * media_content_id = None
2024-06-25 08:48:43.792 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts]    1 Alexa media player detected:
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.office_echo_dot
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts]    Calling notify.alexa_media with data:
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts]      - message: <audio src="https://external_address:8123/local/chime_tts/ms37839u.mp3"/>
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts]      - data: {'type': 'tts'}
2024-06-25 08:48:43.793 DEBUG (MainThread) [custom_components.chime_tts]      - target: ['media_player.office_echo_dot']
2024-06-25 08:48:43.794 DEBUG (MainThread) [custom_components.chime_tts]  - Waiting 5.304s for audio playback to complete...
2024-06-25 08:48:49.103 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]  - Waiting until 1 media_player isn't playing...
2024-06-25 08:48:49.103 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    ✔ media_player.office_echo_dot
2024-06-25 08:48:49.104 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 8.19 s -----
2024-06-25 08:48:51.444 WARNING (SyncWorker_35) [homeassistant.helpers.frame] Detected that custom integration 'simple_wyze_vac' calls hass.async_create_task from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassasync_create_task at custom_components/simple_wyze_vac/vacuum.py, line 77: vac.async_schedule_update_ha_state(force_refresh=True), please report it to the author of the 'simple_wyze_vac' custom integration
2024-06-25 08:48:51.445 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved (None)

I see that the public-facing address for the MP3 file generated by Chime TTS starts with https://external_address:8123 - is this what you have in your configuration?

ok - have to be honest…not sure I understand what you mean by:

https://external_address:8123 - is this what you have in your configuration?

in my configuration? In my configuration.YAML file?

# Loads default set of integrations. Do not remove.
default_config:

recorder:
  db_url: mysql://homeassistant:SearchRain&308&Assist@core-mariadb/homeassistant?charset=utf8mb4
  # SysMon installed following this tutorial: https://www.youtube.com/watch?v=FbFyqQ3He7M

  # Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# Example configuration.yaml entry to enable the cloud component
# This entry came from: https://www.home-assistant.io/integrations/cloud/
cloud:

# The following comes from: 
# https://community.home-assistant.io/t/chime-tts-play-audio-before-after-tts-audio-lag-free/578430/517
homeassistant:
  external_url: "https://external_address:8123" # eg Nabu Casa address
  internal_url: "http://local_address:8123"

#sensor:
#  - platform: systemmonitor
#    resources:
#      - type: processor_use
#      - type: processor_temperature
#      - type: memory_free
#      - type: memory_use
#      - type: memory_use_percent
#      - type: throughput_network_in
#        arg: eth0
#      - type: throughput_network_out
#        arg: eth0
#      - type: disk_use_percent
#        arg: /
#      - type: disk_use

# Text to speech
#tts:
#  - platform: google_translate

# This ifttt config.yaml change came from
# https://www.home-assistant.io/integrations/ifttt/https://www.home-assistant.io/integrations/ifttt/
#
# Also the key or API Key came from the Webhook settings in my IFTTT account:
# https://ifttt.com/maker_webhooks/settings.  You ahve to be logged into your IFTTT
# account to get to this page and your unique key.
ifttt:
  key: !secret my_ifttt_key

# Home zone override configuration.yaml entry
# This comes from: https://community.home-assistant.io/t/default-home-zone/180873/25
# and https://www.home-assistant.io/integrations/zone#home-zone
#zone:
#  - name: Home
#    latitude: 
#    longitude:
#    radius: 75
#    icon: mdi:account-multiple

# This came from https://community.home-assistant.io/t/switch-to-disable-kill-all-automations/288615
# and https://www.home-assistant.io/integrations/input_boolean/
# This prevents the guest bedroom/hall bath light automations from running when a guest is in the house. 
input_boolean:
    guest_bedroom_in_use:
      name: Guest Bedroom In Use


      
######### YAML File Locations #########################
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
group: !include groups.yaml
rest_command: !include rest_command.yaml

Ok, I think I see the issue: you need to set up your Home Assistant to be accessible outside your local network, as Alexa will only play MP3 files that are accessible publicly, outside your network.
There are a number of ways of doing this, the simplest being Nabu Casa Cloud (which should appear as the first option in the Settings page) but you can also do it yourself (there are many guides on how to do this).

Once you can access your instance publicly, you should add your internal and external addresses in your configuration.yaml file. Your Echos should then be able to play the MP3 files generated by Chime TTS.

I have Nabu Casa cloud. Remote access is set up. I am able to access HA from my android phone when away from home.

Clearly, I am missing something you are telling me.

Then you need to set your Nabu Casa public URL to your external_url, eg:

homeassistant:
  external_url: "https://2wt6ufag5gj6hwgh02lcq33ohkttpxpp.ui.nabu.casa"
  internal_url: "http://192.168.64.2:8123/"

Is it possible that at each version update all custom added files are deleted from folder “custom_components/chime_tts/mp3s” ? My chimes which i added are misteriously dissapearing…?

Working it.

HOT DANG. That worked. Meaning - when I corrected the external and internal URLs as you described, it worked!

Many, many thanks!

Now - do I correctly mark your post as the answer…or not in this case…as there is a long thread discussion prior to me.

Glad to hear it’s working for you :+1:
No need to mark the post as the solution, this is a general thread for all things Chime TTS.

2 Likes

Hi @Protoncek - yes that’s exactly right.
You should instead add your custom chime files to your own folder, and enter the path to the Custom Chimes Folder in the integration’s configuration.

1 Like

I can run Chime TTS Say with either an Alexa device (Amazon Echo) or a Sonos device as the target, but not both an Alexa and Sonos device at the same time. If I try both media_player types at the same time, I get the below error. Note: I’m using Google Translate as the TTS platform.

Failed to call service chime_tts.say. stat: path should be string, bytes, os.PathLike or integer, not NoneType

Can you please enable debug logging and report back with the debug log messages?

@Nimrod_Dolev Below are the full logs after following your instructions:

Home Assistant Core
2024-06-25 21:21:20.834 WARNING (SyncWorker_0) [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
2024-06-26 16:53:30.701 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:53:30.702 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-26 16:53:30.808 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:53:30.813 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-26 16:53:30.813 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.sonos_one_basement_bedroom']
2024-06-26 16:53:30.813 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/custom_audio/Alexa_Notification.mp3
2024-06-26 16:53:30.813 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-06-26 16:53:30.814 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-06-26 16:53:30.814 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-06-26 16:53:30.814 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = This is a test
2024-06-26 16:53:30.814 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = google_translate
2024-06-26 16:53:30.814 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-06-26 16:53:30.814 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-06-26 16:53:30.815 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.sonos_one_basement_bedroom
2024-06-26 16:53:30.816 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos_cloud
2024-06-26 16:53:30.816 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.16
2024-06-26 16:53:30.816 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-06-26 16:53:30.817 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-26 16:53:30.817 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-26 16:53:30.817 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-26 16:53:30.819 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```custom_chimes_folder_options = [{'label': 'Alexa_Notification', 'value': '/config/www/custom_audio/Alexa_Notification.mp3'}]
2024-06-26 16:53:30.820 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```chime_path_clean = /config/www/custom_audio/alexa_notification
2024-06-26 16:53:30.836 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/custom_audio/Alexa_Notification.mp3"...
2024-06-26 16:53:32.365 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.75s
2024-06-26 16:53:32.370 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-06-26 16:53:32.370 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'google_translate'
2024-06-26 16:53:32.371 DEBUG (MainThread) [custom_components.chime_tts] * message = 'This is a test'
2024-06-26 16:53:32.371 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-06-26 16:53:32.371 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-06-26 16:53:32.371 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-06-26 16:53:32.971 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 610.0ms
2024-06-26 16:53:32.985 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /media/sounds/temp/chime_tts/...
2024-06-26 16:53:33.356 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/15sqcpdt.mp3
2024-06-26 16:53:33.657 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-06-26 16:53:33.657 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 3.616
2024-06-26 16:53:33.657 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/media/sounds/temp/chime_tts/15sqcpdt.mp3"
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] * public_path = None
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/15sqcpdt.mp3"
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-06-26 16:53:33.658 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] 1 Regular media player detected:
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] - media_player.sonos_one_basement_bedroom
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.sonos_one_basement_bedroom']
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-06-26 16:53:33.659 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/15sqcpdt.mp3
2024-06-26 16:53:33.663 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 3.616s for audio playback to complete...
2024-06-26 16:53:37.287 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...
2024-06-26 16:53:37.287 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.sonos_one_basement_bedroom
2024-06-26 16:53:37.289 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 6.48 s -----
2024-06-26 16:53:45.598 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:53:45.598 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-26 16:53:45.599 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:53:45.600 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-26 16:53:45.600 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.michael_s_2nd_echo_dot']
2024-06-26 16:53:45.600 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/custom_audio/Alexa_Notification.mp3
2024-06-26 16:53:45.601 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-06-26 16:53:45.601 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-06-26 16:53:45.601 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-06-26 16:53:45.601 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = This is a test
2024-06-26 16:53:45.601 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = google_translate
2024-06-26 16:53:45.602 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-06-26 16:53:45.602 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-06-26 16:53:45.602 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-06-26 16:53:45.602 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-06-26 16:53:45.602 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-06-26 16:53:45.603 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-06-26 16:53:45.606 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-06-26 16:53:45.606 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-06-26 16:53:45.606 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.michael_s_2nd_echo_dot
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-26 16:53:45.607 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-06-26 16:53:45.609 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```custom_chimes_folder_options = [{'label': 'Alexa_Notification', 'value': '/config/www/custom_audio/Alexa_Notification.mp3'}]
2024-06-26 16:53:45.610 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```chime_path_clean = /config/www/custom_audio/alexa_notification
2024-06-26 16:53:45.611 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/custom_audio/Alexa_Notification.mp3"...
2024-06-26 16:53:45.904 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.75s
2024-06-26 16:53:45.909 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-06-26 16:53:45.909 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'google_translate'
2024-06-26 16:53:45.909 DEBUG (MainThread) [custom_components.chime_tts] * message = 'This is a test'
2024-06-26 16:53:45.909 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-06-26 16:53:45.909 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-06-26 16:53:45.909 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-06-26 16:53:46.184 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 280.0ms
2024-06-26 16:53:46.197 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /config/www/chime_tts/...
2024-06-26 16:53:46.522 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/n6zn4tna.mp3
2024-06-26 16:53:46.522 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-06-26 16:53:46.523 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /config/www/chime_tts/n6zn4tna.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /config/www/chime_tts/n6zn4tna_converted.mp3"
2024-06-26 16:53:46.788 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-06-26 16:53:47.099 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-06-26 16:53:47.099 DEBUG (MainThread) [custom_components.chime_tts] - key: "7efec5f04aec099dc1885688cccb74fe85ae406e69d098dbfe4493f08886fc67"
2024-06-26 16:53:47.099 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'public_path': '/config/www/chime_tts/n6zn4tna.mp3', 'audio_duration': 3.672}"
2024-06-26 16:53:47.109 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-06-26 16:53:47.109 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 3.672
2024-06-26 16:53:47.109 DEBUG (MainThread) [custom_components.chime_tts] * local_path = None
2024-06-26 16:53:47.109 DEBUG (MainThread) [custom_components.chime_tts] * public_path = "https://private.url//local/chime_tts/n6zn4tna.mp3"
2024-06-26 16:53:47.109 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = None
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-26 16:53:47.110 DEBUG (MainThread) [custom_components.chime_tts] 1 Alexa media player detected:
2024-06-26 16:53:47.111 DEBUG (MainThread) [custom_components.chime_tts] - media_player.michael_s_2nd_echo_dot
2024-06-26 16:53:47.111 DEBUG (MainThread) [custom_components.chime_tts] Calling notify.alexa_media with data:
2024-06-26 16:53:47.111 DEBUG (MainThread) [custom_components.chime_tts] - message: <audio src="https://private.url//local/chime_tts/n6zn4tna.mp3"/>
2024-06-26 16:53:47.111 DEBUG (MainThread) [custom_components.chime_tts] - data: {'type': 'tts'}
2024-06-26 16:53:47.111 DEBUG (MainThread) [custom_components.chime_tts] - target: ['media_player.michael_s_2nd_echo_dot']
2024-06-26 16:53:47.112 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 3.672s for audio playback to complete...
2024-06-26 16:53:50.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...
2024-06-26 16:53:50.788 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] ✔ media_player.michael_s_2nd_echo_dot
2024-06-26 16:53:50.789 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 5.19 s -----
2024-06-26 16:53:59.043 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:53:59.044 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-26 16:53:59.044 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:53:59.048 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-26 16:53:59.048 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-06-26 16:53:59.048 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.michael_s_2nd_echo_dot
2024-06-26 16:53:59.048 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.sonos_one_basement_bedroom
2024-06-26 16:53:59.049 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/custom_audio/Alexa_Notification.mp3
2024-06-26 16:53:59.051 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-06-26 16:53:59.052 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-06-26 16:53:59.052 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-06-26 16:53:59.052 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = This is a test
2024-06-26 16:53:59.052 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = google_translate
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-06-26 16:53:59.053 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-06-26 16:53:59.054 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-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.michael_s_2nd_echo_dot
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-26 16:53:59.054 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.sonos_one_basement_bedroom
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos_cloud
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.16
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-26 16:53:59.055 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-06-26 16:53:59.061 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```custom_chimes_folder_options = [{'label': 'Alexa_Notification', 'value': '/config/www/custom_audio/Alexa_Notification.mp3'}]
2024-06-26 16:53:59.061 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```chime_path_clean = /config/www/custom_audio/alexa_notification
2024-06-26 16:53:59.061 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/custom_audio/Alexa_Notification.mp3"...
2024-06-26 16:53:59.365 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.75s
2024-06-26 16:53:59.370 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-06-26 16:53:59.370 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'google_translate'
2024-06-26 16:53:59.370 DEBUG (MainThread) [custom_components.chime_tts] * message = 'This is a test'
2024-06-26 16:53:59.370 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-06-26 16:53:59.370 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-06-26 16:53:59.370 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-06-26 16:53:59.651 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 280.0ms
2024-06-26 16:53:59.663 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /media/sounds/temp/chime_tts/...
2024-06-26 16:53:59.975 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/y68fia21.mp3
2024-06-26 16:53:59.975 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-06-26 16:53:59.977 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /media/sounds/temp/chime_tts/y68fia21.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /media/sounds/temp/chime_tts/y68fia21_converted.mp3"
2024-06-26 16:54:00.237 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-06-26 16:54:00.532 DEBUG (MainThread) [custom_components.chime_tts] - Saving generated audio to folder ...
2024-06-26 16:54:00.532 ERROR (MainThread) [custom_components.chime_tts] Error calling chime_tts.say service: stat: path should be string, bytes, os.PathLike or integer, not NoneType
2024-06-26 16:54:08.836 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:54:08.836 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-26 16:54:08.837 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.3 -----
2024-06-26 16:54:08.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-26 16:54:08.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids:
2024-06-26 16:54:08.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: media_player.michael_s_2nd_echo_dot
2024-06-26 16:54:08.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: media_player.sonos_one_basement_bedroom
2024-06-26 16:54:08.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/custom_audio/Alexa_Notification.mp3
2024-06-26 16:54:08.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-06-26 16:54:08.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-06-26 16:54:08.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-06-26 16:54:08.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = This is a test
2024-06-26 16:54:08.843 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = google_translate
2024-06-26 16:54:08.843 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-06-26 16:54:08.844 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-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-06-26 16:54:08.844 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.michael_s_2nd_echo_dot
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: alexa_media
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: -1.0
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 1: entity_id: media_player.sonos_one_basement_bedroom
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos_cloud
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.16
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: -1.0
2024-06-26 16:54:08.845 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-06-26 16:54:08.846 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: False
2024-06-26 16:54:08.846 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: False
2024-06-26 16:54:08.846 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] --- Audio will be converted to Alexa-friendly format as Alexa speaker/s detected ---
2024-06-26 16:54:08.850 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```custom_chimes_folder_options = [{'label': 'Alexa_Notification', 'value': '/config/www/custom_audio/Alexa_Notification.mp3'}]
2024-06-26 16:54:08.851 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] ```chime_path_clean = /config/www/custom_audio/alexa_notification
2024-06-26 16:54:08.851 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/custom_audio/Alexa_Notification.mp3"...
2024-06-26 16:54:09.169 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.75s
2024-06-26 16:54:09.172 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-06-26 16:54:09.173 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'google_translate'
2024-06-26 16:54:09.173 DEBUG (MainThread) [custom_components.chime_tts] * message = 'This is a test'
2024-06-26 16:54:09.173 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-06-26 16:54:09.173 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-06-26 16:54:09.173 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-06-26 16:54:09.464 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 290.0ms
2024-06-26 16:54:09.477 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to folder: /media/sounds/temp/chime_tts/...
2024-06-26 16:54:09.792 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/r14wqrys.mp3
2024-06-26 16:54:09.792 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-06-26 16:54:09.793 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Converting audio: "ffmpeg -i /media/sounds/temp/chime_tts/r14wqrys.mp3 -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0 /media/sounds/temp/chime_tts/r14wqrys_converted.mp3"
2024-06-26 16:54:10.049 DEBUG (MainThread) [custom_components.chime_tts] ...FFmpeg audio conversion completed.
2024-06-26 16:54:10.366 DEBUG (MainThread) [custom_components.chime_tts] - Saving generated audio to folder ...
2024-06-26 16:54:10.367 ERROR (MainThread) [custom_components.chime_tts] Error calling chime_tts.say service: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Hi @msl2424, thank you for supplying the debug log messages.

I released a new beta, v1.1.4-beta2, with a potential fix for your issue. I don’t own any Sonos or Alexa speakers, so I have not been able to test the fix on actual hardware - could I ask you to please upgrade to the new version and let me know if the issue is resolved?

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.4-beta2 from the updated version drop-down list
  6. Restart Home Assistant