Volumio Integration - TTS broken
See original GitHub issueThe problem
Invoking the TTS function of the Volumio Lovelace Card produces the following error:
Failed to call service tts/google_translate_say. Expecting value: line 1 column 1 (char 0)
All other functions of the Volumio Card seem to work correctly (although there are some display issues with the prev/next buttons).
Environment
- Home Assistant Core release with the issue: 2021.1.4
- Last working Home Assistant Core release (if known): Unknown
- Operating environment (OS/Container/Supervised/Core): Home Assistant OS 5.10
- Integration causing this issue: Volumio
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/volumio/
Problem-relevant configuration.yaml
# Text to speech
tts:
- platform: google_translate
Traceback/Error logs
Logger: homeassistant.components.websocket_api.http.connection
Source: components/volumio/media_player.py:256
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:34:13 (1 occurrences)
Last logged: 14:34:13
[2905393976] Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 181, in async_say_handle
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/volumio/media_player.py", line 256, in async_play_media
await self._volumio.replace_and_play(json.loads(media_id))
File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Additional information
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:43 (5 by maintainers)
Top Results From Across the Web
Home Assistant Integration Issues - Developer's Corner
Volumio Integration - TTS broken The problem Invoking the TTS function of the Volumio Lovelace Card produces the following error: Failed to ...
Read more >volumio and tts : r/homeassistant
I configured the integration and mostly everything is fine except tts is not working right. Firstly, 2 volumios appeared, 1 is just volumio...
Read more >Volumio & Text to Speech - Third party integrations
Hi all! I'm having difficulties setting up Text to Speech with Volumio. I've set up Amazon Polly. TTS-files are generated.
Read more >Voice Kit - AIY Projects - Google
Move to the next section, Log in to your kit. Not working? Make sure your Voice Kit is still connected to a power...
Read more >Setup the 4 big TTS integrations in Home Assistant - YouTube
If you are looking to setup Text to Speech or TTS in Home Assistant this is the video to start with. In this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not much of a programmer myself in python (yet 😬), but if I can help with some testing I’m at your disposal
@OnFreund Ok. If @volumio offers a way to do with socket.io I will try to implement the TTS story.