That worked. Thanks
Now it seems like I have a new different problem.
This is what I enter in my automations:
actions:
- service: chime_tts.say
target:
entity_id: media_player.kitchen_display
data:
delay: 450
tts_playback_speed: 100
chime_path: /media/sounds/temp/chime_tts/soft.mp3
message: The PM 2.5 levels are back to normal
tts_platform: google_translate
language: en
volume_level: 1
cache: true
I then save the automation, and when I open it back up, this is what I see:
actions:
- target:
entity_id: media_player.kitchen_display
data:
delay: 450
tts_playback_speed: 100
chime_path: /media/sounds/temp/chime_tts/soft.mp3
message: The PM 2.5 levels are back to normal
tts_platform: google_translate
language: en
volume_level: 1
cache: true
action: chime_tts.say
HA changes the chime_tts service into an action. HA has been doing this for all my services lately, which I guess is the new way of doing services. But I keep getting errors about it, saying chime_tts is an unknown action. should I just disregard this error?
I have 18 instances of chime_tts but only 7 are labeled as errors because of the action use. The other automations are still set as services since I havenโt reopened and saved them through HA. I edited them with an external editor accessing the automations.yaml file.
Hi Paul.
You are correct: since v2024.8 of Home Assistant, โservicesโ have been renamed as โactionsโ.
This change is meant to be transparent, meaning that you donโt need to do anything on your end. Automations and scripts that reference โservicesโ will continue to work and the Home Assistant development team has no plans to require users to update anything in the future (as of the time of this post).
When saving the automation, HA automatically replaced the โserviceโ reference with โactionโ. Whatโs odd is that it still continued to warn you about it. While this is not a Chime TTS issue, I suggest you first go through each warning raised by Home Assistant, and save each automation/script so that there are no โserviceโ references, and then restart Home Assistant. This should take care of the warning messages.
Hi @caohuongls. I have just released a new beta version, v1.2.2-beta1, which allows for templates to be used in the message
parameterโs textfield.
Please let me know if it is working for you
hey Nimrod, see attached logs
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Chime TTS Say Called. Version v1.2.2-beta1 โ
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ General Parameters โ
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโฏ
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.spice_kitchen']
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * crossfade = 0
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = test
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-12-18 12:27:35.548 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 0.3
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.spice_kitchen
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.38
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: 0.3
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: True
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: True
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Preparing Audio โ
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโฏ
2024-12-18 12:27:35.549 WARNING (MainThread) [custom_components.chime_tts.helpers.helpers] Unable to select a TTS platform
2024-12-18 12:27:35.549 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-12-18 12:27:35.550 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'None'
2024-12-18 12:27:35.550 DEBUG (MainThread) [custom_components.chime_tts] * message = 'test'
2024-12-18 12:27:35.550 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-12-18 12:27:35.550 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-12-18 12:27:35.550 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-12-18 12:27:36.532 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 980.0ms
2024-12-18 12:27:36.532 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to local folder: /media/sounds/temp/chime_tts/...
2024-12-18 12:27:36.615 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/964e7dd4cc69ce6a58cff6f81403486b.mp3
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 1.512
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/media/sounds/temp/chime_tts/964e7dd4cc69ce6a58cff6f81403486b.mp3"
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] * public_path = None
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/964e7dd4cc69ce6a58cff6f81403486b.mp3"
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Chime TTS playback โ
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโฏ
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] 1 Sonos media player detected:
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - media_player.spice_kitchen
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] Calling media_player.play_media with data:
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - entity_id: ['media_player.spice_kitchen']
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - announce: False
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - media_content_type: music
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/964e7dd4cc69ce6a58cff6f81403486b.mp3
2024-12-18 12:27:36.724 DEBUG (MainThread) [custom_components.chime_tts] - extra: {'volume': 30}
2024-12-18 12:27:36.725 DEBUG (MainThread) [custom_components.chime_tts] - Waiting 1.512s for audio playback to complete...
2024-12-18 12:27:37.262 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.8.212 (192.168.8.212). Requested URL: '/media/local/sounds/temp/chime_tts/0d741b012111b55266cb30d5bd516f13.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJmNWJhZGQ2OWNkOGQ0ZTdhYWQzYWNjZTRjNGE1YWY2MyIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzLzBkNzQxYjAxMjExMWI1NTI2NmNiMzBkNWJkNTE2ZjEzLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTczNDI5ODIwMywiZXhwIjoxNzM0Mzg0NjAzfQ.62W4DkeNeQrLL3qnE1JteD1yEvR1-FKD-sLkjWA8_3c'. (Linux UPnP/1.0 Sonos/82.2-59204 (ZPS13))
2024-12-18 12:27:38.240 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] - Waiting until 1 media_player isn't playing...
2024-12-18 12:27:38.641 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper] โ media_player.spice_kitchen
2024-12-18 12:27:38.641 DEBUG (MainThread) [custom_components.chime_tts] Removing temporary file:
2024-12-18 12:27:38.642 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] Deleting file /media/sounds/temp/chime_tts/964e7dd4cc69ce6a58cff6f81403486b.mp3
2024-12-18 12:27:38.642 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:38.642 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโ Chime TTS Say Completed in 3.09 s โโโโโ
2024-12-18 12:27:38.642 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
2024-12-18 12:27:52.837 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2024-12-18 12:27:52.837 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Chime TTS Say Called. Version v1.2.2-beta1 โ
2024-12-18 12:27:52.837 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2024-12-18 12:27:52.837 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-12-18 12:27:52.838 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ General Parameters โ
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโฏ
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = ['media_player.spice_kitchen']
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = False
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * crossfade = 0
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-12-18 12:27:52.839 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = test
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = cloud
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = 0.3
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array:
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] - 0: entity_id: media_player.spice_kitchen
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] platform: sonos
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] initial volume: 0.38
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] target volume: 0.3
2024-12-18 12:27:52.840 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] now playing: False
2024-12-18 12:27:52.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] join supported: True
2024-12-18 12:27:52.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] announce supported: True
2024-12-18 12:27:52.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:52.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Preparing Audio โ
2024-12-18 12:27:52.841 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโฏ
2024-12-18 12:27:52.845 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-12-18 12:27:52.845 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'cloud'
2024-12-18 12:27:52.845 DEBUG (MainThread) [custom_components.chime_tts] * message = 'test'
2024-12-18 12:27:52.845 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-12-18 12:27:52.845 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-12-18 12:27:52.845 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-12-18 12:27:53.407 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 570.0ms
2024-12-18 12:27:53.407 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to local folder: /media/sounds/temp/chime_tts/...
2024-12-18 12:27:53.474 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/82eb3b0bda5854d5513957263a1d1788.mp3
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts] - Chime TTS audio generated:
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts] * audio_duration = 1.512
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts] * local_path = "/media/sounds/temp/chime_tts/82eb3b0bda5854d5513957263a1d1788.mp3"
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts] * public_path = None
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/82eb3b0bda5854d5513957263a1d1788.mp3"
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Chime TTS playback โ
2024-12-18 12:27:53.578 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโฏ
Thanks.
Yeah, I still have 5 errors, all the same for using an action with chime_tts saying itโs an unknown action. and for some reason, every time I edit them, they all come back as an action. I guess Iโll just have to live with those errors. For some reason the other 13 calls for Chime_tts stayed as services in my automation.yaml file. Only 5 out of 18 are changed to an action call?
Since hearing Elevenlabs support is in chime I decided to try again.
I removed ChimeTTS and the Elevenlabs integrations. Reset HA. Reinstalled everything. Reset and did a test. The below are my logs:
2024-12-19 09:22:18.095 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2024-12-19 09:22:18.095 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Chime TTS Say URL Called. Version v1.2.1 โ
2024-12-19 09:22:18.095 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2024-12-19 09:22:18.095 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ General Parameters โ
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโฏ
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = []
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * chime_path = /config/www/chime_tts/custom_chimes/joyful.mp3
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-12-19 09:22:18.096 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * crossfade = 0
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = This is a chime TTS test. This has generated an audio file using Eleven labs TTS service
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array = []
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโฎ
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โ Preparing Audio โ
2024-12-19 09:22:18.097 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโฏ
2024-12-19 09:22:18.098 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-12-19 09:22:18.098 DEBUG (MainThread) [custom_components.chime_tts] ...no cached audio found
2024-12-19 09:22:18.110 WARNING (SyncWorker_1) [custom_components.chime_tts.helpers.filesystem] Error: The directory '/www/chime_tts/custom_chimes' was not found.
2024-12-19 09:22:18.115 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/chime_tts/custom_chimes/joyful.mp3"...
2024-12-19 09:22:18.311 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.2s
2024-12-19 09:22:18.311 DEBUG (MainThread) [custom_components.chime_tts] - Attempting to retrieve TTS audio from cache...
2024-12-19 09:22:18.311 DEBUG (MainThread) [custom_components.chime_tts] ...no cached TTS audio found
2024-12-19 09:22:18.311 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'elevenlabs'
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * message = 'This is a chime TTS test. This has generated an audio file using Eleven labs TTS service'
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * cache = True
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-12-19 09:22:18.312 ERROR (MainThread) [custom_components.chime_tts] The elevenlabs platform was not found. Please check that it has been configured correctly: https://www.home-assistant.io/integrations/#text-to-speech
2024-12-19 09:22:18.312 ERROR (MainThread) [custom_components.chime_tts] ...audio_data generation failed
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] Retrying TTS audio generation with fallback platform 'tts.piper'
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] - Generating new TTS audio with parameters:
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = 'tts.piper'
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * message = 'This is a chime TTS test. This has generated an audio file using Eleven labs TTS service'
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * cache = True
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * language = None
2024-12-19 09:22:18.312 DEBUG (MainThread) [custom_components.chime_tts] * options = {}
2024-12-19 09:22:18.843 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio generated in 530.0ms
2024-12-19 09:22:18.843 DEBUG (MainThread) [custom_components.chime_tts] - Saving generated TTS audio to cache...
2024-12-19 09:22:18.948 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /media/sounds/temp/chime_tts/08094e41e990f36b495d546a6c67c99a.mp3
2024-12-19 09:22:18.948 DEBUG (MainThread) [custom_components.chime_tts] - Saving data to chime_tts storage:
2024-12-19 09:22:18.948 DEBUG (MainThread) [custom_components.chime_tts] - key: "2fc47e4554b7e8ce4956707720ab8899300500ae685705348ac6fcf073d9d385"
2024-12-19 09:22:18.948 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'local_path': '/media/sounds/temp/chime_tts/08094e41e990f36b495d546a6c67c99a.mp3', 'audio_duration': 6.577}"
2024-12-19 09:22:18.949 DEBUG (MainThread) [custom_components.chime_tts] ...TTS audio saved to cache
2024-12-19 09:22:18.953 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Adding gap of 450.0ms
2024-12-19 09:22:18.959 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-12-19 09:22:19.277 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/18fb5650fd88ba6052c4052eefb5c618.mp3
2024-12-19 09:22:19.493 WARNING (MainThread) [custom_components.chime_tts.helpers.filesystem] Error: The directory 'http://192.168.1.3:8123/local/chime_tts' was not found.
2024-12-19 09:22:19.493 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Public audio file not found on filesystem: http://192.168.1.3:8123/local/chime_tts/18fb5650fd88ba6052c4052eefb5c618.mp3
2024-12-19 09:22:19.493 DEBUG (MainThread) [custom_components.chime_tts] Final URL = None
2024-12-19 09:22:19.493 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
2024-12-19 09:22:19.493 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โโโโโ Chime TTS Say URL Completed in 1.4 s โโโโโ
2024-12-19 09:22:19.493 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
2024-12-19 09:22:19.493 WARNING (MainThread) [custom_components.chime_tts] Check that the folder path in the configuration for `chime_tts.say_url` is within the public "www" folder or the local media folder
I get Errors for Elevenlabs. Not sure what is up there. Its configured correctly and works (tested through โmedia โ tts โ eleven labsโ on my browser. So HA can use the Elevenlabs integration to get back TTS.
Then I also have Warnings about file paths. These are also setup correctly in HA and the paths are set in Chime TTS.
I can see
2024-12-19 09:22:18.959 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-12-19 09:22:19.277 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/18fb5650fd88ba6052c4052eefb5c618.mp3
So not sure why I then get this
2024-12-19 09:22:19.493 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Public audio file not found on filesystem:
Can see a similar path related warning for custom chime
2024-12-19 09:22:18.110 WARNING (SyncWorker_1) [custom_components.chime_tts.helpers.filesystem] Error: The directory '/www/chime_tts/custom_chimes' was not found.
2024-12-19 09:22:18.115 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/config/www/chime_tts/custom_chimes/joyful.mp3"...
Anyone have any idea where I am going wrong?
Hi @neekulp. Thanks for giving it another chance
This issue has been resolved in v1.2.2-beta1.
Please upgrade to the beta version and let me know if the issue still occurs for you.
Edit: See my post below
Okay. So I figured something out. If I actually do my test via an Automation, and not via Developer Tools โ Actions, I get an output mp3 (I can use a file browser to find it in the directory as per my config) from Eleven Labs!!
But I am still getting an folder related error that I wasnt getting before
2024-12-20 14:48:08.356 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Public audio file not found on filesystem: http://192.168.1.3:8123/local/chime_tts/53860a1fff932c4704841ce18bc696ad.mp3
2024-12-20 14:48:08.356 WARNING (MainThread) [custom_components.chime_tts] No public filepath was found for the generated MP3 file
This is my config for the integration
Greetings Nimrod,
I was wondering if there is any indication from Chime TTS to HA after the chime is
generated and/or completed that could be used in a delay template.
Thank you for this awesome platform!
I wanted the same, currently i have a โwait forโ straight after the chime generation that waits for my player go from idle to playing and then another that waits for playing to idle again. Thats been working rather well timing it against my shield tv pausing for the notification to run.
Thatโs a good idead. I think that would work except often the target is already playing music and we use โannounceโ, so Iโd have to see if a state change even registers.
Yeah I am a liar! I check if the speaker goes from any state to playing due to the exact issue you mentioned. I pause if playing before generating anything with chimetts. I think that should cover that use case anyway. Depends what your script/action is like.
Iโve searched this thread, so apologies if itโs already been mentioned, but is there a way to repeat the chime sound before playing the TTS?
For some reason, every time there is an announcement now, I get the โchimeโ that I always got when using google_translate tts, then a 3 to 5 seconds wait, then the โsoft.mp3โ chime that I chose from chime_tts and right after that the announcement. Is there a way to get rid of the original โchimeโ thatโs always been there before using chime_tts and doesnโt seem to want to disappear?
What is the media target, and are any "pre-announce"s defined? I was using a media entity from Music Assistant and had โpre-announceโ turned on resulting in a tone generated from the MA platform.
This is my yaml code for a chime. I donโt think I have any pre announce defined.
actions:
- target:
entity_id: media_player.kitchen_display
data:
delay: 450
tts_playback_speed: 100
chime_path: /media/sounds/temp/chime_tts/soft.mp3
message: The PM 2.5 levels are back to normal
tts_platform: google_translate
language: en
volume_level: 1
cache: true
action: chime_tts.say