So I have my setup working so far but wanted to ask if anyone else is having issues using PyAudion as the microphone input. When I selected this and used the test button, they all have “error”. If I change it to Arecord (ALSA) it works.
Running from the Rhasspy container - is there anything I need to do to use the PyAudio or is my setup just not happy with it?
Okay, that must be the case then. It says Hass.IO manages the tokens for add-on’s. I just didn’t know it doesn’t display them… must be handled in the background I guess…
@Donkie - did you install Rhasspy from the add-on store of Hass.IO, or directly in Docker?
Yep. Hass.IO automatically puts an environment variable named HASSIO_TOKEN in the add-on, which Rhasspy reads and sends along when it’s running in Hass.IO.
Good morning. Http/ was a typo. Corrections did not help.
I installed hass.io from original image. Added the repository and installed the rhasspy assistant add-on. No cli or docker actions.
Last log from rhasspy:
[ERROR:37848527] HomeAssistantIntentHandler: handle_intent
Traceback (most recent call last):
File “/usr/share/rhasspy/rhasspy/intent_handler.py”, line 104, in in_started
intent = self.handle_intent(intent)
File “/usr/share/rhasspy/rhasspy/intent_handler.py”, line 145, in handle_intent
self.forward_intent(event_type, slots)
File “/usr/share/rhasspy/rhasspy/intent_handler.py”, line 159, in forward_intent
response = requests.post(post_url, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/requests/api.py”, line 116, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/requests/api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/requests/sessions.py”, line 519, in request
prep = self.prepare_request(req)
File “/usr/local/lib/python3.6/dist-packages/requests/sessions.py”, line 462, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File “/usr/local/lib/python3.6/dist-packages/requests/models.py”, line 313, in prepare
self.prepare_url(url, params)
File “/usr/local/lib/python3.6/dist-packages/requests/models.py”, line 390, in prepare_url
raise InvalidURL(“Invalid URL %r: No host supplied” % url)
requests.exceptions.InvalidURL: Invalid URL ‘https:/hassio/homeassistant/api/events/rhasspy_GetTime’: No host supplied
I ended up restoring a snapshot and reinstalling Rhasspy. And suddenly as you all described it works without any difficulties!!!
Thanks for your support and keep up the good work!!!
This has been tested with 16000/22050/44100 mono and stereo, all should be resampled to 44100 stereo.
I also have fixed the distortion mostly, I get is sometimes stille but the main issue was the audiobuffer being overwritten by the next audio message.
I am! They’re adding in more things for voice assistants, like a speech to text component and different back-ends for the conversation component. My integration will be able to auto-generate sentences for your devices out of the box, and let you manage most things via HA’s configuration.
Paulus, the HA lead, seems to be focused on Stanford’s Almond for assistant functionality, but he spoke with me about Rhasspy. Almond needs an external cloud service for speech; currently Microsoft’s. I plan to position Rhasspy as a fully private alternative
I’m making some back-end changes to Rhasspy to support the upcoming integration. While I’m at it, I’m merging in some Kaldi models for English, German, and Dutch. These are more accurate than the Pocketsphinx models, and should still run fine on your NUC.
I guess all HA integrations need to talk to services through a client library, so…
But, it is a way to use a Rhasspy server from Python or via the command-line. It lets you do something like this:
Can you tell if your issue is resolved. I am also stuck on error connecting to homeassistant. I copied the .pem file in profile folder. Below is the setting i am using -
The .pem files are in directly in the folder /share/rhasspy/profiles/en/ . I tried changing the path but still same error "Unable to reach your Home Assistant server at https://10.0.0.211:8123. Is it running? ".