I have 5 older S1 compatible Sonos speakers, and three newer S2 compatible Sonos (Symfonisk) speakers that have all been playing relatively nicely together under HA. (Using the Sonos app(s) is a different matter - and I try really hard not to if at all possible!)
These speakers have been providing my TTS automation feedback for several years without enough trouble to talk about.
Last week I was away interstate for work, and at some point while I was gone my broadband modem’s plug pack power supply had a minor altercation with the head of a vacuum cleaner down below my study desk, resulting in my internet connection going down, and the main switch that joins the various segments of my network being offline. After a couple of days like this, I got a call from home explaining that nothing was working - and step by step diagnosed the modem issue. Plugging it back in got it all working again - or so I though…
On returning home I discover that all my S1 Sonos speakers will no longer play any TTS messages at all. All the Symfonisk S2 speakers are working perfectly. While the S1 speakers won’t talk - they are still on-line and everything else (streaming audio, playing locally stored files, alarms etc) is working fine. Just no TTS.
I don’t thinks it is related, but did notice when I installed Music Assistant 8 or 9 months ago - all my media-player devices (which includes the S1 and S2 speakers) got duplicated. I now have media-player.office and media-player.office_2 for example. They all got duplicated. Music Assistant only seems to want to work with the _2 version of anything, but the other services were happy to use the original definition. So I just left it like that.
Now, when I manually execute a scrip that should play a TTS message - the trace tells me that the script has completed normally - just nothing gets said.
I have found the following in the Logs - but don’t know enough to get any useful information out of it, beyond the fact that the first occurrence was while I was away - and the number of occurrences is plausibly how many announcements might have been made in the intervening period…
Logger: homeassistant
Source: components/sonos/media_player.py:559
First occurred: September 15, 2024 at 11:18:07 AM (95 occurrences)
Last logged: 7:16:08 PM
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 707, in _async_run
return await self.script.async_run(script_vars, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1795, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1296, in async_run
await super().async_run()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 463, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 527, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 557, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 460, in async_speak
await self.hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 559, in async_play_media
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Announcing clip http://xxx.xxx.xxx.xxx:8123/api/tts_proxy/e4e8bc0de6792691c8a5cb4e9d5bc05430d95bac_nl-nl_-_tts.piper.mp3 failed {'namespace': 'audioClip:1', 'playerId': 'RINCON_B8E93788A26E01400', 'response': 'loadAudioClip', 'success': False, 'type': 'globalError'}
Is anyone able to move me any closer to a solution?
Many thanks in anticipation.