Open DanDixon opened 1 month ago
Hi Dan, thank you for opening the ticket and providing your settings and debug log messages ⭐️ Sorry you've been having issues.
I think the cause might be related to the your chime_tts.say_url
folder in your configuration:
This folder path needs to be public/externally accessible.
Can you please try changing it to a folder path that starts with /config/www/
eg:
I just released a new beta version, v1.1.6-beta2, that fixes a lot of caching issues. I suggest you upgrade and test against this newer version 👍
I reverted to using the default say_url folder and changed to using the URL string instead of the media_content_id (for some reason, I incorrectly thought that Google devices didn't work with a local url).
Separately, I also needed to delete the config/.storage/chime_tts_integration_data file (as it wasn't getting cleared when I cleared the cache (and maybe this was because of something manual that I did), but it thought that there were some cached files that no longer existed. Either way, clearing the cache and then deleting this file fixed that.
And now everything seems to be working fine.
In short, the non-standard things I had done to get chime_tts working historically broke with the latest update, but reverting to default settings solved my problem.
As an aside, I'm inclined to think that adding 'allowlist_external_dirs' in my configuration.yaml file:
homeassistant:
allowlist_external_dirs:
- /media/chime_tts
should have qualified the say_url folder to be able to generate a public URL in that folder (as the files were created correctly when it was initialized that way), but it works with the default settings, so it's not a big deal.
In short, everything works well now.
Thanks again for a great integration!
Hey @DanDixon, glad to hear its working well for you now 👍
I think the you're right about how chime_tts.say_url
should be able to use the /media/chime_tts folder if it has been added to your allow_external_dirs
list. I will investigate further.
In the latest beta (v1.1.6-beta4) I added validation to the configuration page and made a fix to the code which handles external mp3 paths.
Hi!
I have a similar problem with the latest version v1.1.6-beta5
With this service call
action: chime_tts.say_url
data:
offset: 450
final_delay: 100
message: Hello
tts_platform: google_translate
cache: false
audio_conversion: Alexa
language: it
options: "tld: com.au\voice: en-AU"
tts_speed: 100
i get this result
url: null
media_content_id: null
duration: 0
success: false
The log says
Logger: custom_components.chime_tts
Source: custom_components/chime_tts/__init__.py:871
integration: Chime TTS ([documentation](https://nimroddolev.github.io/chime_tts), [issues](https://github.com/nimroddolev/chime_tts/issues))
First occurred: 13:35:02 (1 occurrences)
Last logged: 13:35:02
async_get_playback_audio_path --> Public audio file not found on filesystem: http://192.168.1.63:8123/local/chime_tts/yy1ywi1r.mp3
The thing is that the file is actually in that specific folder (if I past the above url in the browser I can play the audio file). So i do not understand the problem
this is my chime tts config
and this is my home assistant config yaml
homeassistant:
allowlist_external_dirs:
- /media/sounds/temp/chime_tts/chimes/
- /media/sounds/temp/chime_tts/
- /config/www/chime_tts/
Am I missing something?
I'm also having new issues after upgrading to v1.1.6-beta5.
It was working fine before I updated from v1.1.6-beta3.
Please let me know if you need any additional info.
2024-11-01 17:17:30.878 INFO (MainThread) [homeassistant.setup] Setting up chime_tts
2024-11-01 17:17:30.878 INFO (MainThread) [homeassistant.setup] Setup of domain chime_tts took 0.00 seconds
2024-11-01 17:18:42.662 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔════════════════════════════════════════════════╗
2024-11-01 17:18:42.662 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Say URL Called. Version v1.1.6-beta5 ║
2024-11-01 17:18:42.662 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚════════════════════════════════════════════════╝
2024-11-01 17:18:42.662 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭────────────────────╮
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ General Parameters │
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰────────────────────╯
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * entity_ids = []
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * cache = True
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * offset = 450.0
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * final_delay = 0.0
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * message = [{'chime': 'media/sounds/notify.mp3'}, {'tts': 'Home Assistant has started', 'offset': -800}]
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_platform = tts.openai_tts
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_speed = 100.0
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * tts_pitch = 0
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * announce = False
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * fade_audio = False
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * volume_level = -1
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * join_players = False
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * unjoin_players = False
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] * media_players_array = []
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────╮
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │ Preparing Audio │
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────╯
2024-11-01 17:18:42.849 DEBUG (MainThread) [custom_components.chime_tts] *** Checking Chime TTS audio cache ***
2024-11-01 17:18:42.851 DEBUG (MainThread) [custom_components.chime_tts] ...no cached audio found
2024-11-01 17:18:42.852 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/media/sounds/notify.mp3"...
2024-11-01 17:18:43.078 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.536s
2024-11-01 17:18:43.078 DEBUG (MainThread) [custom_components.chime_tts] - Attempting to retrieve TTS audio from cache...
2024-11-01 17:18:43.079 DEBUG (MainThread) [custom_components.chime_tts] - Retrieving audio from path: "/media/temp/chime_tts/wo89y3bv.mp3"...
2024-11-01 17:18:43.148 DEBUG (MainThread) [custom_components.chime_tts] ...audio retrieved. Duration: 1.462s
2024-11-01 17:18:43.148 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] Performing overlay of -800.0ms
2024-11-01 17:18:43.149 DEBUG (MainThread) [custom_components.chime_tts] - Saving mp3 file to public folder: /config/www/chime_tts/...
2024-11-01 17:18:43.204 DEBUG (MainThread) [custom_components.chime_tts.helpers.filesystem] File saved to path: /config/www/chime_tts/gqssd0h_.mp3
2024-11-01 17:18:43.274 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Public audio file not found on filesystem: http://192.168.1.5:8123/local/chime_tts/gqssd0h_.mp3
2024-11-01 17:18:43.274 DEBUG (MainThread) [custom_components.chime_tts] Final URL = None
2024-11-01 17:18:43.274 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╭─────────────────────────────────────────────────╮
2024-11-01 17:18:43.274 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] │──── Chime TTS Say URL Completed in 430.0 ms ────│
2024-11-01 17:18:43.274 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╰─────────────────────────────────────────────────╯
2024-11-01 17:18:43.274 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
2024-11-01 17:24:03.082 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╔══════════════════════════════════════════════╗
2024-11-01 17:24:03.082 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ║ Chime TTS Version v1.1.6-beta5 Configuration ║
2024-11-01 17:24:03.082 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ╚══════════════════════════════════════════════╝
Edit: Reverting to v1.1.6-beta3 fixed the problem for me.
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 4928 Installed Version | 2.0.1 Stage | running Available Repositories | 1465 Downloaded Repositories | 72AccuWeather
can_reach_server | ok -- | -- remaining_requests | 42Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | October 31, 2024 at 5:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true remote_server | us-east-1-7.ui.nabu.casa certificate_status | ready instance_id | b8337d89d1654680a2050a4ab1c65281 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 13.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.10.2 agent_version | 1.6.0 docker_version | 27.2.0 disk_total | 117.4 GB disk_used | 90.2 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | vmware board | ova supervisor_api | ok version_api | ok installed_addons | File editor (5.8.0), Studio Code Server (5.17.2), Mosquitto broker (6.4.1), Home Assistant Google Drive Backup (0.112.1), Hass Calendar Addon (0.501), Terminal & SSH (9.14.0), PS5 MQTT (1.4.0), Samba share (12.3.2), Zigbee2MQTT (1.40.2-1), Piper (1.5.2), Node-RED (18.1.1), MQTT Explorer (browser-1.0.3)Dashboards
dashboards | 21 -- | -- resources | 49 views | 305 mode | storageMiele
component_version | 2024.8.1 -- | -- reach_miele_cloud | okRecorder
oldest_recorder_run | October 9, 2024 at 8:32 AM -- | -- current_recorder_run | October 18, 2024 at 3:17 PM estimated_db_size | 2539.34 MiB database_engine | sqlite database_version | 3.45.3Spotify
api_endpoint_reachable | ok -- | --Checklist
Describe the issue
1.1.4 worked fine with my configuration, but after updating to 1.1.6, it no longer works.
I'm using Google Nest Minis to playback the audio.
Here's my setup:
This is the error that I'm getting:
2024-10-18 15:24:57.341 ERROR (MainThread) [custom_components.chime_tts] async_get_playback_audio_path --> Unable to generate public audio file
The files are being created correctly:
But media_content_id is no longer being returned anymore, which is how I was playing back the resulting mp3 on Google Nest Minis:
Here's what a line from the 1.1.4 log file showing the media source line that was generated:
2024-10-18 15:14:56.201 DEBUG (MainThread) [custom_components.chime_tts] * media_content_id = "media-source://media_source/local/chime_tts/jekxb93n.mp3"
In my configuration.yaml file I added this (months ago):
Switching back to 1.1.4 makes it work again.
Reproduction steps
1. 2. 3. ...
Debug logs
Diagnostics dump
I can't find the diagnostics dump file.