Tried today, google_translate TTS works as intended, but picotts gets an error.
I prefer local TTS, Any solutions?
Running:
Home Assistant 2023.2.5
Supervisor 2023.01.1
Operating System 9.5
ERROR LOG:
Logger: homeassistant.helpers.script.websocket_api_script
Source: components/apple_tv/media_player.py:292
First occurred: 12:02:53 (1 occurrences)
Last logged: 12:02:53
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: (‘failed to init decoder’, -17)
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 451, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 684, in _async_call_service_step
await service_task
File “/usr/src/homeassistant/homeassistant/core.py”, line 1787, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/components/tts/init.py”, line 217, in async_say_handle
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1787, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 213, in handle_service
await service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 680, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 968, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 720, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/apple_tv/media_player.py”, line 292, in async_play_media
await self.atv.stream.stream_file(media_id)
File “/usr/local/lib/python3.10/site-packages/pyatv/core/facade.py”, line 392, in stream_file
await self.relay(“stream_file”)(file, **kwargs)
File “/usr/local/lib/python3.10/site-packages/pyatv/protocols/raop/init.py”, line 371, in stream_file
audio_file = await open_source(
File “/usr/local/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py”, line 483, in open_source
return await InternetSource.open(source, sample_rate, channels, sample_size)
File “/usr/local/lib/python3.10/site-packages/pyatv/protocols/raop/audio_source.py”, line 362, in open
stream_generator = await loop.run_in_executor(
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.10/site-packages/miniaudio.py”, line 1265, in stream_any
raise DecodeError(“failed to init decoder”, result)
miniaudio.DecodeError: (‘failed to init decoder’, -17)