I have a setup with a vibration sensor, greg, piper and a HomePod.
While settin…g up I found that most of the time there is no audio output via the HomePod.
I have the recollection that it might have worked once but not more often than that.
Looking through the logs I find that when Greg is firing the tts I get a error.
Nothing wrong in the piper logs:
```
DEBUG:wyoming_piper.handler:Synthesizing stream sentence: I remain exactly where I was.
DEBUG:wyoming_piper.handler:Synthesize(text='I remain exactly where I was.', voice=None, text_format=None, context=None)
DEBUG:wyoming_piper.handler:synthesize: raw_text=I remain exactly where I was., text='I remain exactly where I was.'
DEBUG:piper.voice:text=I remain exactly where I was., phonemes=[['a', 'ɪ', ' ', 'ɹ', 'ɪ', 'm', 'ˈ', 'e', 'ɪ', 'n', ' ', 'ɪ', 'ɡ', 'z', 'ˈ', 'æ', 'k', 't', 'l', 'ɪ', ' ', 'w', 'ˈ', 'e', 'ə', 'ɹ', ' ', 'a', 'ɪ', ' ', 'w', 'ɒ', 'z', '.']]
```
But in the general log of homeassistant the following can be found:
```
Logger: homeassistant.core
Source: core.py:2981
First occurred: 14:37:38 (42 occurrences)
Last logged: 17:50:36
Error executing service: <ServiceCall tts.speak (c:01KZKJG394QSW5WX7MF3F82Q75): entity_id=['tts.piper'], media_player_entity_id=['media_player.woonkamer_homepod'], message=Very well. Someone leaned on me briefly. I supported them. That is the arrangement. Nobody signed anything., cache=True>
Error executing service: <ServiceCall tts.speak (c:01KZKJHBJWZ0HWZDK7C5BBE70H): entity_id=['tts.piper'], media_player_entity_id=['media_player.woonkamer_homepod'], message=I detected motion. My detection systems are, regrettably, fully functional., cache=True>
Error executing service: <ServiceCall tts.speak (c:01KZKJJN84JF7EVPD65WXS0C44): entity_id=['tts.piper'], media_player_entity_id=['media_player.woonkamer_homepod'], message=So. Something touched me. I have chosen not to examine that feeling too closely., cache=True>
Error executing service: <ServiceCall tts.speak (c:01KZKJVQHVBJQE86T00MFJK8D9): entity_id=['tts.piper'], media_player_entity_id=['media_player.woonkamer_homepod'], message=That was gentle. I want to note that I noticed it was gentle. Nobody will read the note., cache=True>
Error executing service: <ServiceCall tts.speak (c:01KZKKFPN6XT6RCYVY9G4231QD): entity_id=['tts.piper'], media_player_entity_id=['media_player.woonkamer_homepod'], message=Well. Movement nearby. I remain exactly where I was. I always do. It is not a choice., cache=True>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2981, in _run_service_call_catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 3004, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 906, in entity_service_call
response_data = await _async_handle_entity_calls(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 785, in _async_handle_entity_calls
single_result = await entity.async_request_call(_with_context(entity, coro))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1710, in async_request_call
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 780, in _with_context
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 864, in _handle_single_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tts/entity.py", line 142, in async_speak
await self.hass.services.async_call(
...<17 lines>...
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2961, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 3004, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 906, in entity_service_call
response_data = await _async_handle_entity_calls(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 785, in _async_handle_entity_calls
single_result = await entity.async_request_call(_with_context(entity, coro))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1710, in async_request_call
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 780, in _with_context
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 864, in _handle_single_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/apple_tv/media_player.py", line 382, in async_play_media
await self.atv.stream.stream_file(media_id)
File "/usr/local/lib/python3.14/site-packages/pyatv/core/facade.py", line 390, in stream_file
await self.relay("stream_file")(
...<4 lines>...
)
File "/usr/local/lib/python3.14/site-packages/pyatv/protocols/raop/__init__.py", line 363, in stream_file
audio_file = await open_source(
^^^^^^^^^^^^^^^^^^
...<4 lines>...
)
^
File "/usr/local/lib/python3.14/site-packages/pyatv/protocols/raop/audio_source.py", line 736, in open_source
return await InternetSource.open(source, sample_rate, channels, sample_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pyatv/protocols/raop/audio_source.py", line 598, in open
stream_generator = await loop.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/miniaudio.py", line 1658, in stream_any
raise DecodeError("failed to init decoder", result)
miniaudio.DecodeError: ('failed to init decoder', -1)
```
While sending the following action via the developertools gives no error:
```
action: tts.speak
data:
message: Something touched me. I have chosen not to examine that feeling too closely.
media_player_entity_id: media_player.woonkamer_homepod
cache: false
target:
entity_id: tts.piper
```