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

Hi @Leon047m and @maxyge. I have released a beta version with a fix for the issue. Can you please install it 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.3-beta1 from the updated version drop-down list
  6. Restart Home Assistant

Thanks, that did the trick. Pretty Obvious I suppose but my reading of the documenation suggested we only enter the chime name rather than the full file name. Maybe that is only for the ‘built in’ chimes though.

Thanks again for our help.

I agree it could be clearer. I will add support for using the “short” custom chime name on the next release :+1:

2 Likes

Thank you for the support, with the latest beta, it works perfectly.
Greetings
Massimo

1 Like

Awesome work @Nimrod_Dolev

Thanks, works for me now!

And thanks to the people submitting debug logs also.

1 Like

After installing Chime TTS, my logs and HA notification tray are flooded with the below. HA considers it a login request and notifies me of failed attempts.

Of note, I have zero audio files setup for Chime TTS. I use Nabu Cloud TTS only.

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:135
integration: HTTP (documentation, issues)
First occurred: June 24, 2024 at 10:21:31 PM (88 occurrences)
Last logged: 8:35:38 AM

Login attempt or request with invalid authentication from 192.168.1.94 (192.168.1.94). Requested URL: ‘/media/local/sounds/temp/chime_tts/xchgu2w2.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNTI2ZWNjMjlhOTg0ZGJhYjc3MmI0MjkzNDk1ZDc5YiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL3hjaGd1MncyLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxOTE2MzI5OCwiZXhwIjoxNzE5MjQ5Njk4fQ.l0Jd-U4a2E-iPHCEv-rbbCfWdSRRXyrdvetENhzXXvI’. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS31))

The IP in question is a Sonos speaker.

Hi @derekcentrico. I think the issue might be an SSL issue but it’s difficult to say.

Could you please enable debug logging and provide your debug logs messages to help shed more light on what might be going on?

It may be this:

@123 I’m curious, though, how that bug would be causing this Chime TTS result for an unavailable, unselected MP3 type that doesn’t exist?

@Nimrod_Dolev Here’s a snippet. Nothing really different.

(HTTPConnectionPool(host='192.168.1.129', port=49152): Max retries exceeded with url: /upnp/event/basicevent1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff5d6b2ea0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))), will retry in 60s
2024-06-24 17:20:15.857 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /eventservice.xml
2024-06-24 17:20:20.943 ERROR (Wemo Events Thread) [pywemo.ouimeaux_device] Unable to re-probe wemo <WeMo Switch "wemo10 stairs"> at 192.168.1.129
2024-06-24 17:20:22.993 WARNING (SyncWorker_18) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5d6fe690>, 'Connection to 192.168.1.129 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:20:55.946 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.94 (192.168.1.94). Requested URL: '/media/local/sounds/temp/chime_tts/xchgu2w2.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNTI2ZWNjMjlhOTg0ZGJhYjc3MmI0MjkzNDk1ZDc5YiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL3hjaGd1MncyLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxOTE2MzI5OCwiZXhwIjoxNzE5MjQ5Njk4fQ.l0Jd-U4a2E-iPHCEv-rbbCfWdSRRXyrdvetENhzXXvI'. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS31))
2024-06-24 17:22:06.851 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff6025b4a0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:23:10.845 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff46128860>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:23:16.851 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff46128080>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:23:31.532 WARNING (SyncWorker_14) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.92', port=49154): Read timed out. (read timeout=3.0)")': /setup.xml
2024-06-24 17:23:42.029 WARNING (SyncWorker_14) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /timesyncservice.xml
2024-06-24 17:23:48.012 WARNING (SyncWorker_14) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /eventservice.xml
2024-06-24 17:24:21.012 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:24:21.013 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:24:27.948 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:24:27.949 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:24:28.658 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:24:28.659 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:24:29.416 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:24:29.417 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:24:29.841 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:24:29.842 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:24:32.799 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:24:32.800 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:24:49.853 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.94 (192.168.1.94). Requested URL: '/media/local/sounds/temp/chime_tts/xchgu2w2.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNTI2ZWNjMjlhOTg0ZGJhYjc3MmI0MjkzNDk1ZDc5YiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL3hjaGd1MncyLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxOTE2MzI5OCwiZXhwIjoxNzE5MjQ5Njk4fQ.l0Jd-U4a2E-iPHCEv-rbbCfWdSRRXyrdvetENhzXXvI'. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS31))
2024-06-24 17:25:19.844 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff513892e0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:25:25.853 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff513add00>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:26:16.782 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:26:16.784 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:27:00.361 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:27:00.363 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:27:00.972 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:27:00.973 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:27:01.290 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:27:01.291 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:27:01.744 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:27:01.745 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:27:02.336 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif(update, 'none', sound) }}'
2024-06-24 17:27:02.338 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'update' is undefined when rendering '{{ iif((update or sound == 'none'), 0, volume) }}'
2024-06-24 17:27:30.444 WARNING (SyncWorker_15) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.92', port=49154): Read timed out.")': /timesyncservice.xml
2024-06-24 17:27:35.463 WARNING (SyncWorker_15) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /setupservice.xml
2024-06-24 17:27:58.845 WARNING (SyncWorker_0) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5d6f57f0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:28:04.851 WARNING (SyncWorker_0) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5d75dbe0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:28:13.858 WARNING (SyncWorker_0) [urllib3.connectionpool] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff4aa20410>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:28:28.864 WARNING (SyncWorker_0) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff4aa188c0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:28:55.871 WARNING (SyncWorker_0) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff46df8b90>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:30:59.153 WARNING (SyncWorker_0) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff384d26c0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:31:34.848 WARNING (SyncWorker_23) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff524aee40>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:31:40.854 WARNING (SyncWorker_23) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff87154c80>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:31:49.861 WARNING (SyncWorker_23) [urllib3.connectionpool] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff601ed880>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:32:24.845 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff461351f0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:32:30.849 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5d3c4500>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:32:39.855 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff871167e0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:32:54.862 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff461536b0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:33:21.868 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff513e41a0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:35:18.312 WARNING (SyncWorker_12) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /setup.xml
2024-06-24 17:35:21.869 WARNING (SyncWorker_12) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /setupservice.xml
2024-06-24 17:35:28.974 WARNING (SyncWorker_12) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /setupservice.xml
2024-06-24 17:35:32.426 WARNING (SyncWorker_12) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.125', port=49153): Read timed out. (read timeout=3.0)")': /timesyncservice.xml
2024-06-24 17:35:38.344 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.94 (192.168.1.94). Requested URL: '/media/local/sounds/temp/chime_tts/xchgu2w2.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNTI2ZWNjMjlhOTg0ZGJhYjc3MmI0MjkzNDk1ZDc5YiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL3hjaGd1MncyLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxOTE2MzI5OCwiZXhwIjoxNzE5MjQ5Njk4fQ.l0Jd-U4a2E-iPHCEv-rbbCfWdSRRXyrdvetENhzXXvI'. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS31))
2024-06-24 17:35:42.985 WARNING (SyncWorker_12) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.92', port=49154): Read timed out. (read timeout=3.0)")': /setup.xml
2024-06-24 17:35:49.879 WARNING (SyncWorker_12) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5d6cc230>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /setup.xml
2024-06-24 17:36:03.678 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.94 (192.168.1.94). Requested URL: '/media/local/sounds/temp/chime_tts/xchgu2w2.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNTI2ZWNjMjlhOTg0ZGJhYjc3MmI0MjkzNDk1ZDc5YiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL3hjaGd1MncyLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxOTE2MzI5OCwiZXhwIjoxNzE5MjQ5Njk4fQ.l0Jd-U4a2E-iPHCEv-rbbCfWdSRRXyrdvetENhzXXvI'. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS31))
2024-06-24 17:38:55.845 WARNING (SyncWorker_6) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5ac31f70>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:38:58.959 WARNING (SyncWorker_6) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff592aa150>: Failed to establish a new connection: [Errno 113] Host is unreachable')': /upnp/control/basicevent1
2024-06-24 17:39:07.966 WARNING (SyncWorker_6) [urllib3.connectionpool] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff552333b0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:39:22.972 WARNING (SyncWorker_6) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff4a9d70e0>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /upnp/control/basicevent1
2024-06-24 17:39:57.059 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.94 (192.168.1.94). Requested URL: '/media/local/sounds/temp/chime_tts/xchgu2w2.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNTI2ZWNjMjlhOTg0ZGJhYjc3MmI0MjkzNDk1ZDc5YiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL3hjaGd1MncyLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxOTE2MzI5OCwiZXhwIjoxNzE5MjQ5Njk4fQ.l0Jd-U4a2E-iPHCEv-rbbCfWdSRRXyrdvetENhzXXvI'. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS31))
2024-06-24 17:39:58.348 WARNING (SyncWorker_25) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.184', port=49152): Read timed out. (read timeout=3.0)")': /setupservice.xml
2024-06-24 17:40:04.354 WARNING (SyncWorker_25) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xffff5d721250>, 'Connection to 192.168.1.184 timed out. (connect timeout=3.0)')': /setupservice.xml

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.