Larynx de_thorsten Timeout issue

Hi,

i just installed the hass.io rhasspy addon with a seperate Rpi 3A as sattelite. All is working so far except my text to speech when using Larynx TTS (NanoTTS is working fine).

In the Log on the master i can see the follwing in the log:

[ERROR:2021-01-09 15:51:31,097] rhasspyserver_hermes: 
Traceback (most recent call last):
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
    return await handler(**request_.view_args)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1661, in api_text_to_speech
    results = await asyncio.gather(*aws)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1647, in speak
    volume=volume,
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 599, in speak_sentence
    handle_finished(), messages, message_types
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 971, in publish_wait
    result_awaitable, timeout=timeout_seconds
  File "/usr/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
[DEBUG:2021-01-09 15:51:31,096] rhasspyserver_hermes: Publishing 21 bytes(s) to hermes/audioServer/toggleOn
[DEBUG:2021-01-09 15:51:31,094] rhasspyserver_hermes: -> AudioToggleOn(site_id='default')
[DEBUG:2021-01-09 15:51:01,058] rhasspyserver_hermes: Publishing 143 bytes(s) to hermes/tts/say
[DEBUG:2021-01-09 15:51:01,057] rhasspyserver_hermes: -> TtsSay(text='wieviel uhr ist es', site_id='default', lang=None, id='47ec2085-5e5d-497d-af41-7a2b58b6e82f', session_id='', volume=1.0)
[DEBUG:2021-01-09 15:51:01,056] rhasspyserver_hermes: Subscribed to hermes/error/audioServer/play
[DEBUG:2021-01-09 15:51:01,054] rhasspyserver_hermes: Subscribed to hermes/audioServer/default/playBytes/#
[DEBUG:2021-01-09 15:51:01,053] rhasspyserver_hermes: Subscribed to hermes/error/tts
[DEBUG:2021-01-09 15:51:01,051] rhasspyserver_hermes: Subscribed to hermes/tts/sayFinished
[DEBUG:2021-01-09 15:51:01,049] rhasspyserver_hermes: Publishing 21 bytes(s) to hermes/audioServer/toggleOff

Anyone has a idea what i can do?

Thanks in advance

Do you see the synthesizer being properly created in the logs? Larynx runs pretty slow on anything below a Pi 4, so it’s possible too that it’s just too slow to outpace the default timeout.

Same here on 2.5.8:

LOGS:

[ERROR:2021-01-13 09:46:16,485] rhasspyserver_hermes: 
Traceback (most recent call last):
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
    return await handler(**request_.view_args)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1661, in api_text_to_speech
    results = await asyncio.gather(*aws)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1647, in speak
    volume=volume,
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 599, in speak_sentence
    handle_finished(), messages, message_types
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 971, in publish_wait
    result_awaitable, timeout=timeout_seconds
  File "/usr/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
[DEBUG:2021-01-13 09:45:46,449] rhasspyserver_hermes: Publishing 123 bytes(s) to hermes/tts/say
[DEBUG:2021-01-13 09:45:46,449] rhasspyserver_hermes: -> TtsSay(text='a', site_id='desk', lang=None, id='c5857aa5-f287-4b03-8e0b-667262e0b024', session_id='', volume=1.0)

The actual Larynx TTS is running on the Server on a NUC Machine.
How can I check if the synthesizer was being properly created in the logs?
In my Base there is nothing in the logs. I can only see the logs from the satellite where I initiate the TTS. This is the ouput posted above.

Hi synesthesiam,

sorry for the late response. almost do not dare to ask but where i can find the synthesizer logs? I’ running rhasspy (Master) in HASS.IO und slave on a RPi as docker container.

I’m getting the same error.
I’ve ran this command to set Larynx up on a Pi 4:

docker run -it -p 5002:5002 \
    --device /dev/snd:/dev/snd \
    rhasspy/larynx:de-thorsten-1

Docker container is up and running. In Rhasspy UI is no voice available after clicking the fetch button so I entered it myself:

After pressing Speak the error occurs. I’m not sure at all whether the setup is correct to be honest.

Anyone having success with Larynx yet?

Perhaps this is related?