Rhasspy 2.5.8 Released

It is currentlt already available, but is it renamed to Rhassy Assistant, removing the 2.4 version.
You can savely install that and remove the Rhasspy 2.5, but first make a copy of the configuration

Do not worry, your profiles folder on the share will not be deleted

After uninstalling Rhasspy Assistant 2.5 and installing the new Rhasspy Assistant (pointing to 2.5.8), when you reload the addons the 2.5 will be gone :slight_smile:

2 Likes

@synesthesiam Congratulations! Thank you for your work!

Seems something broken in downloading Kaldi base_dictionary.txt
Can’t download https://raw.githubusercontent.com/rhasspy/ru_kaldi-rhasspy/raw/master/base_dictionary.txt.gz - 404: Not Found

You’re welcome :slight_smile:

Ah, I see what happened here. I’ll get a fix pushed out for this soon.

@Thargor, silly question: have you tried completely restarting Rhasspy? For some reason, the voice didn’t work for me until I did this.

But I do have this in my console log:

[DEBUG] {'de-thorsten': {'model_path': PosixPath('/home/hansenm/.config/rhasspy/profiles/de/tts/larynx/de/thorsten/checkpoint_380000.pth.tar'), 'config_path': PosixPath('/home/hansenm/.config/rhasspy/profiles/de/tts/larynx/de/thorsten/config.json'), 'vocoder_path': PosixPath('/home/hansenm/.config/rhasspy/profiles/de/tts/larynx/de/thorsten/vocoder/checkpoint_500000.pth.tar'), 'vocoder_config_path': PosixPath('/home/hansenm/.config/rhasspy/profiles/de/tts/larynx/de/thorsten/vocoder/config.json')}}
[DEBUG] Creating Larynx synthesizer (de-thorsten)...
[INFO] Created synthesizer for de-thorsten

Rhasspy runs on a Synology NAS inside Docker. You are right, the Docker log shows:

If I try to say “Das ist ein Test” from the Satellite-Webfrontend, i get the following log:

Seems like there is a problem with an “illegal instruction” and the process crashed …
Any Idea what could be the reason?

OK, I’m guessing that the CPU in your Synology does not support AVX instructions. I’m using the official PyTorch CPU wheel for x86_64, which is probably compiled for AVX.

I may try and compile my own non-AVX wheel. It sucks that the moment you step into PyTorch/Tensorflow land, it suddenly really matters which year your CPU was made or what tier it is.

1 Like

Yes you are right, it is an Celeron J3455 without AVX. At least, this mystery is solved.

2 Likes

Many thanks for that !!

I’ve integrated it into Jeedom plugin, works perfect !
We now have to set device volume to 100% when raspberry start :smile:
amixer -c 0 set Playback 100%

2 Likes

Hi

First post here so apologies if I’ve messed something up.
I’ve just updated the deb package from 2.5.7 to 2.5.8. When I run “rhasspy -p en” I now get this error…

Starting up…
Using virtual environment at /usr/lib/rhasspy/.venv
python3: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

On the latest Ubuntu (20.10) python is 3.8. I’ve tried sym linking the 3.8 lib to that file but then I just get more errors…
symbol lookup error: python3: undefined symbol: _Py_UnixMain

Is this something anyone else has come across or has a workaround for ?

1 Like

Hi @TotalSpaceshipguy, thanks for posting :slight_smile:

Can you try apt-get installing libpython3.7 and see if that fixes it? I tried a different method for packaging the .deb files this time around, and I may have missed a requirement.

Hi

Thanks for the quick reply :slight_smile: That didn’t work I’m afraid. I’ve tried searching in the package manager (synaptic) for that and it shows an old package called libpython3.7-minimal, but that doesn’t install and just gives this message…

Package libpython3.7-minimal has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and never uploaded, has been obsoleted or is not available with the contents of sources.list

I’ve looked on https://packages.ubuntu.com/search too, but libpython3.7 hasn’t shipped since the bionic release (18.04)

I could try and force install the old 3.7 packages but I’m not sure if this will break something else.

OK @TotalSpaceshipguy, I’ve uploaded new .deb files that include libpython3.7m.so.1.0. I’m hoping this will be enough to make it work :slight_smile:

@synesthesiam
Thanks for your time looking into this, it’s much appreaciated. I’ve just re-installed, and now when running “rhasspy -p en” I get this output…

Starting up…
Using virtual environment at /usr/lib/rhasspy/.venv
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x00007f3595668740 (most recent call first):
/usr/lib/rhasspy/bin/rhasspy-voltron: line 123: 12610 Aborted (core dumped) “${this_dir}/voltron-run” python3 -m rhasspysupervisor --profile “${profile_name}” --user-profiles “${user_profiles}” --docker-compose ‘’ “${extra_supervisor_args[@]}” --debug

1 Like

I am doing a fresh install, using git and french settings.
I get this error :

Successfully installed torch-1.6.0a0
cd “/root/rhasspy/rhasspy-tts-larynx-hermes/larynx/TTS” &&
“/root/rhasspy/.venv/bin/python” -m pip install -r requirements.txt &&
“/root/rhasspy/.venv/bin/python” -m pip install . &&
cd “/root/rhasspy/rhasspy-tts-larynx-hermes/larynx/TTS/TTS/tts/layers/glow_tts/monotonic_align” &&
“/root/rhasspy/.venv/bin/python” setup.py install &&
cd “/root/rhasspy/rhasspy-tts-larynx-hermes/larynx” &&
“/root/rhasspy/.venv/bin/python” -m pip install -r requirements.txt
/bin/bash: ligne 0 : cd: /root/rhasspy/rhasspy-tts-larynx-hermes/larynx/TTS: Aucun fichier ou dossier de ce type
make: *** [Makefile:168: install-rhasspy] Error 1

I’ve succeed in downloading manaully these files :

cd “/root/rhasspy/rhasspy-tts-larynx-hermes/”
mkdir larynx
cd larynx
wget https://github.com/rhasspy/TTS/archive/v0.2.0.tar.gz
tar xvzf v0.2.0.tar.gz
mv TTS-0.2.0 TTS

1 Like

I have the same problem. (synology CPU without AVX, rhasspy running in a docker container)
just commenting and looking forward for a fix.

2020-11-30T10:35:40.304586703Z [DEBUG:2020-11-30 11:35:40,304] rhasspyserver_hermes: -> TtsSay(text='es wird alles gut', site_id='base', lang=None, id='4664e7f3-93e7-4f0d-8d9c-541e728ad513', session_id='', volume=1.0),
2020-11-30T10:35:40.305337930Z [DEBUG:2020-11-30 11:35:40,304] rhasspyserver_hermes: Publishing 139 bytes(s) to hermes/tts/say,
2020-11-30T10:35:40.310632898Z [DEBUG] <- TtsSay(text='es wird alles gut', site_id='base', lang=None, id='4664e7f3-93e7-4f0d-8d9c-541e728ad513', session_id='', volume=1.0),
2020-11-30T10:35:40.310860571Z [DEBUG] Synthesizing 'es wird alles gut' (voice=de-thorsten),
2020-11-30T10:35:40.430902753Z [DEBUG] Number converter regex: ^-?\d+([,.]\d+)*\w+$,
2020-11-30T10:35:40.480057241Z [DEBUG] Loading lexicon from /usr/lib/rhasspy/.venv/lib/python3.7/site-packages/gruut/data/de-de/lexicon.txt.gz,
2020-11-30T10:35:46.437961739Z [DEBUG] Loaded pronunciations for 277911 word(s),
2020-11-30T10:36:10.337892268Z [ERROR:2020-11-30 11:36:10,337] rhasspyserver_hermes: ,
2020-11-30T10:36:10.338345076Z Traceback (most recent call last):,
2020-11-30T10:36:10.338405245Z   File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request,
2020-11-30T10:36:10.338527574Z   File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request,
2020-11-30T10:36:10.338473305Z     result = await self.dispatch_request(request_context),
2020-11-30T10:36:10.338588765Z     return await handler(**request_.view_args),
2020-11-30T10:36:10.338639978Z   File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1661, in api_text_to_speech,
2020-11-30T10:36:10.338773246Z     results = await asyncio.gather(*aws),
2020-11-30T10:36:10.338847683Z   File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1647, in speak,
2020-11-30T10:36:10.338960007Z   File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 599, in speak_sentence,
2020-11-30T10:36:10.338912745Z     volume=volume,,
2020-11-30T10:36:10.339014832Z     handle_finished(), messages, message_types,
2020-11-30T10:36:10.339062468Z   File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 971, in publish_wait,
2020-11-30T10:36:10.339116392Z     result_awaitable, timeout=timeout_seconds,
2020-11-30T10:36:10.339163508Z   File "/usr/lib/python3.7/asyncio/tasks.py", line 449, in wait_for,
2020-11-30T10:36:10.339268186Z concurrent.futures._base.TimeoutError,
2020-11-30T10:36:10.339214924Z     raise futures.TimeoutError(),
2020-11-30T10:36:20.410693723Z 1606732580: Socket error on client auto-86BA0B66-1B02-FDC0-8C9D-5881914B6E7E, disconnecting.,
2020-11-30T10:36:20.411697076Z /usr/lib/rhasspy/rhasspy-tts-larynx-hermes/bin/rhasspy-tts-larynx-hermes: line 15:   463 Illegal instruction     (core dumped) python3 -m rhasspytts_larynx_hermes "$@",
2020-11-30T10:29:32.858720497Z [INFO] Created synthesizer for de-thorsten,
2020-11-30T10:29:30.458951354Z [DEBUG] Creating Larynx synthesizer (de-thorsten)...,
2020-11-30T10:29:32.859498901Z [DEBUG] Using selector: EpollSelector,
2020-11-30T10:29:32.860020447Z [DEBUG] Connecting to localhost:12183,
2020-11-30T10:29:30.458745169Z [DEBUG] {'de-thorsten': {'model_path': PosixPath('/profiles/de/tts/larynx/de/thorsten/checkpoint_380000.pth.tar'), 'config_path': PosixPath('/profiles/de/tts/larynx/de/thorsten/config.json'), 'vocoder_path': PosixPath('/profiles/de/tts/larynx/de/thorsten/vocoder/checkpoint_500000.pth.tar'), 'vocoder_config_path': PosixPath('/profiles/de/tts/larynx/de/thorsten/vocoder/config.json')}},
2020-11-30T10:29:30.457880211Z [DEBUG] Namespace(cache_dir='/profiles/de/tts/larynx/cache', config=[], debug=True, default_voice='de-thorsten', host='localhost', log_format='[%(levelname)s:%(asctime)s] %(name)s: %(message)s', model=[['de-thorsten', '/profiles/de/tts/larynx/de/thorsten/checkpoint_380000.pth.tar']], password=None, play_command=None, port=12183, site_id=['base', 'pantheon2', 'kallisto', 'base'], tls=False, tls_ca_certs=None, tls_cert_reqs='CERT_REQUIRED', tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, username=None, vocoder_config=[], vocoder_model=[['de-thorsten', '/profiles/de/tts/larynx/de/thorsten/vocoder/checkpoint_500000.pth.tar']], volume=1.0),
2020-11-30T10:36:20.411985739Z 2020-11-30 11:36:20,411 INFO exited: text_to_speech (exit status 132; not expected)
2 Likes

Has the Docker image for the Raspberry Pi Zero been updated? I just used “docker pull --platform linux/arm/v6 rhasspy/rhasspy” to pull for my Pi Zero and after starting the container the web interface still says 2.5.7

1 Like

Dockerhub is showing it as having been updated 5 days ago. Did you try a CTRL + R refresh of the web UI?

Thanks, @bsheepdiy

I’m going to just include Larynx as a git submodule in the Larynx TTS service. Testing it out now.

I’m curious, @TotalSpaceshipguy, how would you (and others) feel about an AppImage instead a Debian package?

I just spent like half a day wondering why it does not work on my zero …

1 Like