Hi all!
I’m having difficulties setting up Text to Speech with Volumio.
I’ve set up Amazon Polly. TTS-files are generated. Volumio is running. It can play music. I can interact with Volumio through Home Assistant (play, pause, volume, etc.).
Volumio can also play the TTS-files generated by Polly if I feed them to Volumio by hand. As in: starting radio and linking it to ‘https://[url-redacted]:8123/api/tts_proxy/aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d_en-us_42023311789_amazon_polly.mp3’
For Volumio to play these files, I did have to turn on audio resampling in Volumio and set bit depth to 32, and sample rate to 44.1 kHZ.
Now, when I try to use TTS with automations, or the media instance in Home Assistance, I hear absolutely nothing. (Not even some crackling, which I hear when I play non-resampled files in Volumio by hand.)
There is a media player related error in my logs whenever I try to use TTS in Home Assistance, but I am not able to interpret it. From my logs:
2017-10-15 11:41:55 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 181, in _step
result = coro.throw(exc)
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 408, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 707, in play_media
raise NotImplementedError()
NotImplementedError
Does anyone have any experience with setting up TTS and Volumio? Thanks!