Closed dbullendsl closed 10 months ago
I can confirm - no voice produced using Piper - logs working v0.10.2 :
2024-01-05 23:04:38.390 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say URL Called. Version v0.10.2 -----
2024-01-05 23:04:38.390 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-05 23:04:38.390 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * entity_ids = []
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * chime_path = custom_components/chime_tts/mp3s/bells.mp3
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * end_chime_path = custom_components/chime_tts/mp3s/bells_2.mp3
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * delay = 450.0
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * message = The National Weather Service has issued a tornado warning for this area. Take cover immediately!
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = tts.piper
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * tts_playback_speed = 100.0
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * announce = False
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * volume_level = -1.0
2024-01-05 23:04:38.392 DEBUG (MainThread) [custom_components.chime_tts] * join_players = False
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] * unjoin_players = False
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] * voice = en_US-kusal-medium
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-05 23:04:38.393 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells.mp3", 0, audio)
2024-01-05 23:04:38.410 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells.mp3"...
2024-01-05 23:04:38.576 DEBUG (MainThread) [custom_components.chime_tts] - ...retrieved successfully. Audio duration: 0.944s
2024-01-05 23:04:38.576 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(hass, tts_platform = tts.piper, message = The National Weather Service has issued a tornado warning for this area. Take cover immediately!, tts_playback_speed = 100.0, cache = False, language = None, options = {'voice': 'en_US-kusal-medium'})
2024-01-05 23:04:38.576 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-05 23:04:40.295 DEBUG (MainThread) [custom_components.chime_tts] - ...TTS audio completed in 1719.503 ms
2024-01-05 23:04:40.298 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells_2.mp3", 450.0, audio)
2024-01-05 23:04:40.298 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells_2.mp3"...
2024-01-05 23:04:40.382 DEBUG (MainThread) [custom_components.chime_tts] - ...retrieved successfully. Audio duration: 1.279s
2024-01-05 23:04:40.394 DEBUG (MainThread) [custom_components.chime_tts] - Final audio created. Duration: 8.236s
2024-01-05 23:04:40.394 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file...
2024-01-05 23:04:40.394 DEBUG (MainThread) [custom_components.chime_tts] - Audio folder exists: /config/www/chime_tts/
2024-01-05 23:04:40.547 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] - ...FFmpeg audio conversion completed.
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] - Filepath = '/config/www/chime_tts/9j39tw8b.mp3'
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] - File saved successfully
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] - audio_dict = {'audio_path': '/config/www/chime_tts/9j39tw8b.mp3', 'audio_duration': 8.236}
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] Saving to chime_tts storage:
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] - key: "8eb6fa0cdaa9f861750d310bd58dc43c987e8c6b70a36a4ea634f68fd2b14d39"
2024-01-05 23:04:40.662 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'audio_path': '/config/www/chime_tts/9j39tw8b.mp3', 'audio_duration': 8.236}"
2024-01-05 23:04:40.666 DEBUG (MainThread) [custom_components.chime_tts] Final URL = https://davebhome.duckdns.org:443/local/chime_tts/9j39tw8b.mp3
2024-01-05 23:04:40.666 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say URL Completed in 2275.709 ms -----
2024-01-05 23:04:40.666 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-05 23:04:40.667 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
non-working v0.11.0:
2024-01-05 23:14:21.670 INFO (MainThread) [homeassistant.setup] Setting up chime_tts
2024-01-05 23:14:21.670 INFO (MainThread) [custom_components.chime_tts] The Chime TTS integration is set up.
2024-01-05 23:14:21.670 INFO (MainThread) [homeassistant.setup] Setup of domain chime_tts took 0.0 seconds
2024-01-05 23:14:44.508 INFO (MainThread) [homeassistant.components.automation.clear_chime_tts_path] Initialized trigger Clear Chime_TTS Path
2024-01-05 23:19:02.148 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say URL Called. Version v0.11.0 -----
2024-01-05 23:19:02.148 DEBUG (MainThread) [custom_components.chime_tts] Service call #0 was added to the queue.
2024-01-05 23:19:02.148 DEBUG (MainThread) [custom_components.chime_tts] Executing queued job #0
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] ----- General Parameters -----
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * entity_ids = []
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * chime_path = custom_components/chime_tts/mp3s/bells.mp3
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * end_chime_path = custom_components/chime_tts/mp3s/bells_2.mp3
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * cache = False
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * delay = 450.0
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * message = Testing testing
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * tts_platform = tts.piper
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * tts_playback_speed = 100.0
2024-01-05 23:19:02.150 DEBUG (MainThread) [custom_components.chime_tts] * announce = False
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] * volume_level = -1.0
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] * join_players = False
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] * unjoin_players = False
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] * ffmpeg_args = -y -ac 2 -codec:a libmp3lame -b:a 48k -ar 24000 -write_xing 0
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] ----- TTS-Specific Params -----
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] * voice = en_US-kusal-medium
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] -------------------------------
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] async_get_playback_audio_path
2024-01-05 23:19:02.151 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells.mp3", 0, audio)
2024-01-05 23:19:02.153 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells.mp3"...
2024-01-05 23:19:02.252 DEBUG (MainThread) [custom_components.chime_tts] - ...retrieved successfully. Audio duration: 0.944s
2024-01-05 23:19:02.253 DEBUG (MainThread) [custom_components.chime_tts] async_request_tts_audio(tts_platform='tts.piper', message='Testing testing ', tts_playback_speed=100.0, cache=False, language=None, options=voice: en_US-kusal-medium)
2024-01-05 23:19:02.253 DEBUG (MainThread) [custom_components.chime_tts] - Generating TTS audio...
2024-01-05 23:19:02.253 ERROR (MainThread) [custom_components.chime_tts] - Error calling tts.media_source.generate_media_source_id: dictionary update sequence element #0 has length 1; 2 is required
2024-01-05 23:19:02.254 WARNING (MainThread) [custom_components.chime_tts] Unable to generate TTS audio from messsage segment #1
2024-01-05 23:19:02.254 DEBUG (MainThread) [custom_components.chime_tts] get_audio_from_path("custom_components/chime_tts/mp3s/bells_2.mp3", 450.0, audio)
2024-01-05 23:19:02.254 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "custom_components/chime_tts/mp3s/bells_2.mp3"...
2024-01-05 23:19:02.336 DEBUG (MainThread) [custom_components.chime_tts] - ...retrieved successfully. Audio duration: 1.279s
2024-01-05 23:19:02.338 DEBUG (MainThread) [custom_components.chime_tts] - Final audio created. Duration: 2.673s
2024-01-05 23:19:02.338 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file...
2024-01-05 23:19:02.338 DEBUG (MainThread) [custom_components.chime_tts] - Audio folder exists: /config/www/chime_tts/
2024-01-05 23:19:02.418 DEBUG (MainThread) [custom_components.chime_tts] - Performing FFmpeg audio conversion...
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] - ...FFmpeg audio conversion completed.
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] - Filepath = '/config/www/chime_tts/6e0pr3ti.mp3'
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] - File saved successfully
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] - audio_dict = {'audio_path': '/config/www/chime_tts/6e0pr3ti.mp3', 'audio_duration': 2.673}
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] Saving to chime_tts storage:
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] - key: "9a7ecee19bce69f8fa1649f27bd9972109dc70afb75093c7867014afa2dc6600"
2024-01-05 23:19:02.481 DEBUG (MainThread) [custom_components.chime_tts] - value: "{'audio_path': '/config/www/chime_tts/6e0pr3ti.mp3', 'audio_duration': 2.673}"
2024-01-05 23:19:02.484 DEBUG (MainThread) [custom_components.chime_tts] Final URL = https://davebhome.duckdns.org/local/chime_tts/6e0pr3ti.mp3
2024-01-05 23:19:02.485 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say URL Completed in 335.601 ms -----
2024-01-05 23:19:02.485 DEBUG (MainThread) [custom_components.chime_tts] Removing current queued service call.
2024-01-05 23:19:02.485 DEBUG (MainThread) [custom_components.chime_tts] Queue emptied. Reinitializing values.
Hi @dbullendsl, i'm sorry the new version broke the voices for Piper. I believe I found the issue and created a beta with a fix that is working for me. Could you please install the beta and confirming whether it is fixed for you as well?
To install the new beta version:
⋮
button in the top right↻ Redownload
optionShow beta versions
optionv0.11.1-beta1
from the updated version drop-down listyes, it's working again - thank you. Tested up to beta 2
-dave
Checklist
Is your feature request related to a problem? Please describe.
I haven't had time to dig into this problem, but using my working scripts and calling chime_tts.play_url in the developer's tools trying to pass a parameter voice: en_US_xxxxxx no longer works.
I'll try to get to this asap. Sticking with v0.10.2 for now
Describe the solution you'd like
working selection of voice
Describe alternatives you've considered
none
Additional context
none