I just got Rhasspy running on an rpi 4 in docker with a respeaker 4-mic array following the pi from scratch tutorial.
My goal is to get rhasspy running as an offline voice assistant for Home Assistant. I’ve followed the example, but am running into issues when trying to train after installing the slot program. The log output is below. I can’t make heads or tails of it, is some kind soul willing and able to either tell me what the issue is or propose some debugging steps?
[ERROR:2020-09-15 19:13:43,974] rhasspyserver_hermes: Command '['/profiles/en/slot_programs/hass/entities', 'switch']' returned non-zero exit status 3. 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 1235, in api_train result = await core.train() File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 359, in train word_transform=word_transform, File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/train.py", line 87, in sentences_to_graph slot_visitor=word_visitor, File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/slots.py", line 87, in get_slot_replacements slot_command, universal_newlines=True File "/usr/lib/python3.7/subprocess.py", line 411, in check_output **kwargs).stdout File "/usr/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['/profiles/en/slot_programs/hass/entities', 'switch']' returned non-zero exit status 3. [DEBUG:2020-09-15 19:13:43,912] rhasspynlu.slots: Running program for slot hass/entities,switch: ['/profiles/en/slot_programs/hass/entities', 'switch'] [DEBUG:2020-09-15 19:13:43,893] rhasspynlu.ini_jsgf: Loaded ini file [DEBUG:2020-09-15 19:13:43,888] rhasspyserver_hermes: Generating intent graph [DEBUG:2020-09-15 19:13:43,884] rhasspyserver_hermes: Loading sentences from [PosixPath('/profiles/en/sentences.ini'), PosixPath('/profiles/en/intents/homeassistant.ini')] [INFO:2020-09-15 19:13:43,881] rhasspyserver_hermes: Starting training