Hi,
I received a Pi Zero W and the following usb sound card and mic for Christmas:
Soundcard:
https://www.amazon.co.uk/gp/product/B00IRVQ0F8/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
Mic:
I am trying to get a standalone instance of Rhasspy working on the Pi Zero W so I followed the instructions in the docs to install via Docker, however I am struggling to get it working successfully.
My first question is, is this possible or can the Zero only be used as a satellite in a master / satellite setup (due to hardware limitations)?
If it is possible to use the Zero as a standalone instance then I need some advice about the setup of the soundcard and mic.
My Setup:
Pi Zero W, with Raspbian Lite and Rhasspy 2.5.8 (installed via Docker)
My Rhasspy Settings:
I am using Send events to Home Assistant.
Questions:
- In Audio Recording, which device should I select?
From reading the docs and posts online I know that the working device should have a star beside it or say working!
- however the only option that has this is for a null
device.
I tried most sensible options (basically every one except those that start “Number Surround Output” but I get no response when I say the wake word (porcupine).
- This is my log when I start Rhasspy:
[DEBUG:2020-12-30 16:40:10,896] rhasspyprofile.download: speech_to_text.deepspeech.mix_weight >0 0 = False
[DEBUG:2020-12-30 16:40:10,891] rhasspyprofile.download: speech_to_text.kaldi.mix_weight >0 0 = False
[DEBUG:2020-12-30 16:40:10,802] rhasspyprofile.download: speech_to_text.pocketsphinx.mix_weight >0 0 = False
[DEBUG:2020-12-30 16:40:10,782] rhasspyprofile.download: speech_to_text.deepspeech.open_transcription True False = False
[DEBUG:2020-12-30 16:40:10,722] rhasspyprofile.download: speech_to_text.kaldi.open_transcription True False = False
[DEBUG:2020-12-30 16:40:10,692] rhasspyprofile.download: speech_to_text.pocketsphinx.open_transcription True False = False
[DEBUG:2020-12-30 16:40:10,665] rhasspyprofile.download: speech_to_text.system deepspeech pocketsphinx = False
[DEBUG:2020-12-30 16:40:10,651] rhasspyprofile.download: speech_to_text.system kaldi pocketsphinx = False
[DEBUG:2020-12-30 16:40:10,601] rhasspyprofile.download: Skipping acoustic_model/variances (/profiles/en/acoustic_model/variances)
[DEBUG:2020-12-30 16:40:10,581] rhasspyprofile.download: Skipping acoustic_model/transition_matrices (/profiles/en/acoustic_model/transition_matrices)
[DEBUG:2020-12-30 16:40:10,532] rhasspyprofile.download: Skipping acoustic_model/noisedict (/profiles/en/acoustic_model/noisedict)
[DEBUG:2020-12-30 16:40:10,492] rhasspyprofile.download: Skipping acoustic_model/mixture_weights (/profiles/en/acoustic_model/mixture_weights)
[DEBUG:2020-12-30 16:40:10,472] rhasspyprofile.download: Skipping acoustic_model/means (/profiles/en/acoustic_model/means)
[DEBUG:2020-12-30 16:40:10,442] rhasspyprofile.download: Skipping acoustic_model/mdef (/profiles/en/acoustic_model/mdef)
[DEBUG:2020-12-30 16:40:10,382] rhasspyprofile.download: Skipping acoustic_model/feature_transform (/profiles/en/acoustic_model/feature_transform)
[DEBUG:2020-12-30 16:40:10,352] rhasspyprofile.download: Skipping acoustic_model/feat.params (/profiles/en/acoustic_model/feat.params)
[DEBUG:2020-12-30 16:40:10,322] rhasspyprofile.download: Skipping g2p.corpus (/profiles/en/g2p.corpus)
[DEBUG:2020-12-30 16:40:10,292] rhasspyprofile.download: Skipping g2p.fst (/profiles/en/g2p.fst)
[DEBUG:2020-12-30 16:40:10,252] rhasspyprofile.download: Skipping base_dictionary.txt (/profiles/en/base_dictionary.txt)
[DEBUG:2020-12-30 16:40:10,212] rhasspyprofile.download: speech_to_text.system pocketsphinx pocketsphinx = True
[INFO:2020-12-30 16:40:06,120] rhasspyserver_hermes: Started
[DEBUG:2020-12-30 16:40:06,082] rhasspyserver_hermes: Subscribed to hermes/asr/textCaptured
[DEBUG:2020-12-30 16:40:06,049] rhasspyserver_hermes: Subscribed to hermes/hotword/+/detected
[DEBUG:2020-12-30 16:40:06,002] rhasspyserver_hermes: Subscribed to hermes/audioServer/office/audioSummary
[DEBUG:2020-12-30 16:40:05,962] rhasspyserver_hermes: Subscribed to hermes/nlu/intentNotRecognized
[DEBUG:2020-12-30 16:40:05,922] rhasspyserver_hermes: Subscribed to rhasspy/asr/office/office/audioCaptured
[DEBUG:2020-12-30 16:40:05,862] rhasspyserver_hermes: Subscribed to hermes/intent/#
[DEBUG:2020-12-30 16:40:05,842] rhasspyserver_hermes: Subscribed to hermes/audioServer/office/audioSummary
[DEBUG:2020-12-30 16:40:05,792] rhasspyserver_hermes: Subscribed to rhasspy/asr/office/office/audioCaptured
[DEBUG:2020-12-30 16:40:05,762] rhasspyserver_hermes: Subscribed to hermes/nlu/intentNotRecognized
[DEBUG:2020-12-30 16:40:05,712] rhasspyserver_hermes: Subscribed to hermes/intent/#
[DEBUG:2020-12-30 16:40:05,700] rhasspyserver_hermes: Subscribed to hermes/asr/textCaptured
[DEBUG:2020-12-30 16:40:05,632] rhasspyserver_hermes: Subscribed to hermes/hotword/+/detected
[DEBUG:2020-12-30 16:40:05,601] rhasspyserver_hermes: Connected to MQTT broker
[DEBUG:2020-12-30 16:40:05,533] rhasspyserver_hermes: Connecting to localhost:12183 (retries: 2/10)
[ERROR:2020-12-30 16:40:04,519] rhasspyserver_hermes: mqtt connect
Traceback (most recent call last):
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 289, in start
self.client.connect(self.host, self.port)
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 937, in connect
return self.reconnect()
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 1071, in reconnect
sock = self._create_socket_connection()
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/local/lib/python3.7/socket.py", line 728, in create_connection
raise err
File "/usr/local/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address
[DEBUG:2020-12-30 16:40:04,507] rhasspyserver_hermes: Connecting to localhost:12183 (retries: 1/10)
[ERROR:2020-12-30 16:40:03,485] rhasspyserver_hermes: mqtt connect
Traceback (most recent call last):
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 289, in start
self.client.connect(self.host, self.port)
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 937, in connect
return self.reconnect()
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 1071, in reconnect
sock = self._create_socket_connection()
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/local/lib/python3.7/socket.py", line 728, in create_connection
raise err
File "/usr/local/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address
[DEBUG:2020-12-30 16:40:03,468] rhasspyserver_hermes: Connecting to localhost:12183 (retries: 0/10)
[DEBUG:2020-12-30 16:40:03,463] rhasspyserver_hermes: Starting core
[DEBUG:2020-12-30 16:40:03,404] rhasspyprofile.profile: Loading default profile settings from /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/defaults.json
[DEBUG:2020-12-30 16:40:03,386] rhasspyprofile.profile: Loading /profiles/en/profile.json
[DEBUG:2020-12-30 16:40:03,372] rhasspyprofile.profile: Loading /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/profile.json
[DEBUG:2020-12-30 16:40:02,782] rhasspyserver_hermes: Restarting Rhasspy
It seems like I am having some sort of MQTT error about using port 12183? Although it does seem to successfully connect to the MQTT broker after this error has occurred?
I tried switching to using External MQTT (using my MQTT broker from Home Assistant) however I seem unable to use an External Broker - Rhasspy errors and then locks me out of the web interface. I have to ssh in and edit the profile.json file manually back to default Internal settings to get back online.
I would be really gratetful for any suggestions or advice as to how I can get this working.
Thank you