Kaldi errors when training, poketsphinx works ok

pi4 master with pizeroW satellite, latest docker 2.5.11 on both
all works well after running the home assistant slot program, limited to the light & input boolean domains…however after adding a few custom words and needing to retrain, kaldi errors out.
switching to pocketsphinx and retraining works fine, but the stt is hit and miss and i’d like to see if kaldi is better.
error:
raise TrainingFailedException(reason=asr_response.error)
rhasspyserver_hermes.TrainingFailedException: Command ‘[‘bash’, ‘/usr/lib/rhasspy/.venv/lib/kaldi/egs/wsj/s5/utils/prepare_lang.sh’, ‘/profiles/en/kaldi/model/data/local/dict’, ‘’, ‘/profiles/en/kaldi/model/data/local/lang’, ‘/profiles/en/kaldi/model/data/lang’]’ returned non-zero exit status 1.
[ERROR:2021-08-10 14:57:41,510] rhasspyserver_hermes: AsrError(error=“Command ‘[‘bash’, ‘/usr/lib/rhasspy/.venv/lib/kaldi/egs/wsj/s5/utils/prepare_lang.sh’, ‘/profiles/en/kaldi/model/data/local/dict’, ‘’, ‘/profiles/en/kaldi/model/data/local/lang’, ‘/profiles/en/kaldi/model/data/lang’]’ returned non-zero exit status 1.”, site_id=‘default’, context=None, session_id=‘463d9a8a-b3c6-4093-920a-5a1138052c18’)

full log from starting training:

[ERROR:2021-08-10 14:57:41,511] rhasspyserver_hermes: Command ‘[‘bash’, ‘/usr/lib/rhasspy/.venv/lib/kaldi/egs/wsj/s5/utils/prepare_lang.sh’, ‘/profiles/en/kaldi/model/data/local/dict’, ‘’, ‘/profiles/en/kaldi/model/data/local/lang’, ‘/profiles/en/kaldi/model/data/lang’]’ returned non-zero exit status 1.
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 1313, in api_train
result = await core.train()
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py”, line 472, in train
raise TrainingFailedException(reason=asr_response.error)
rhasspyserver_hermes.TrainingFailedException: Command ‘[‘bash’, ‘/usr/lib/rhasspy/.venv/lib/kaldi/egs/wsj/s5/utils/prepare_lang.sh’, ‘/profiles/en/kaldi/model/data/local/dict’, ‘’, ‘/profiles/en/kaldi/model/data/local/lang’, ‘/profiles/en/kaldi/model/data/lang’]’ returned non-zero exit status 1.
[ERROR:2021-08-10 14:57:41,510] rhasspyserver_hermes: AsrError(error=“Command ‘[‘bash’, ‘/usr/lib/rhasspy/.venv/lib/kaldi/egs/wsj/s5/utils/prepare_lang.sh’, ‘/profiles/en/kaldi/model/data/local/dict’, ‘’, ‘/profiles/en/kaldi/model/data/local/lang’, ‘/profiles/en/kaldi/model/data/lang’]’ returned non-zero exit status 1.”, site_id=‘default’, context=None, session_id=‘463d9a8a-b3c6-4093-920a-5a1138052c18’)
[DEBUG:2021-08-10 14:57:41,507] rhasspyserver_hermes: Handling AsrError (topic=hermes/error/asr, id=7f7c2a76-94c8-4a77-a42c-d9c85386fab1)
[DEBUG:2021-08-10 14:57:38,417] rhasspyserver_hermes: Handling NluTrainSuccess (topic=rhasspy/nlu/default/trainSuccess, id=7f7c2a76-94c8-4a77-a42c-d9c85386fab1)
[DEBUG:2021-08-10 14:57:38,387] rhasspyserver_hermes: Publishing 3753 bytes(s) to rhasspy/nlu/default/train
[DEBUG:2021-08-10 14:57:38,387] rhasspyserver_hermes: → NluTrain
[DEBUG:2021-08-10 14:57:38,382] rhasspyserver_hermes: Publishing 3753 bytes(s) to rhasspy/asr/default/train
[DEBUG:2021-08-10 14:57:38,381] rhasspyserver_hermes: → AsrTrain
[DEBUG:2021-08-10 14:57:38,375] rhasspyserver_hermes: Finished writing /profiles/en/intent_graph.pickle.gz
[DEBUG:2021-08-10 14:57:38,225] rhasspyserver_hermes: Writing /profiles/en/intent_graph.pickle.gz
[DEBUG:2021-08-10 14:57:37,564] rhasspynlu.slots: Running program for slot hass/entities,cover: [’/profiles/en/slot_programs/hass/entities’, ‘cover’]
[DEBUG:2021-08-10 14:57:36,936] rhasspynlu.slots: Running program for slot hass/entities,light: [’/profiles/en/slot_programs/hass/entities’, ‘light’]
[DEBUG:2021-08-10 14:57:36,237] rhasspynlu.slots: Running program for slot hass/entities,input_boolean: [’/profiles/en/slot_programs/hass/entities’, ‘input_boolean’]
[DEBUG:2021-08-10 14:57:36,233] rhasspynlu.ini_jsgf: Loaded ini file
[DEBUG:2021-08-10 14:57:36,231] rhasspyserver_hermes: Generating intent graph
[DEBUG:2021-08-10 14:57:36,230] rhasspyserver_hermes: Loading sentences from [PosixPath(’/profiles/en/sentences.ini’)]
[INFO:2021-08-10 14:57:36,229] rhasspyserver_hermes: Starting training

i’ve deleted the kaldi folder and redownloaded a couple of times, but that didn’t fix it.

any insight or help would be gratefully recieved!

1 Like

@danpow Did you find the solution for this?