synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
942 stars 101 forks source link

KaldiDecoder Missing HCLG.fst Graph not found at .../graph/HCLG.fst. #181

Open basnijholt opened 4 years ago

basnijholt commented 4 years ago

I am using a HassIO installed Rhasspy 2.4.18 on a RPi 4.

I am getting the error consistently:

KaldiDecoder | Missing HCLG.fst | Graph not found at /share/rhasspy/profiles/en/kaldi/model/graph/HCLG.fst. Did you train your profile?

I have removed my entire /share/rhasspy and reinstalled the add-on, however, the error returns. All of my relevant config files are here.

I have found this where @synesthesiam suggested this, however, that didn't solve it for me.

Another person reported the same problem. There, tobetobe removed the kaldi folder and the problem was solved. This also didn't help in my case.

This person also reported the same problem. There "deleting the settings" is suggested, however, it's unclear to me which settings should be removed.

Several others seem to have the problem, judging from this search.

synesthesiam commented 4 years ago

There must be an error during training then, since the HCLG.fst is not being produced. This could also be caused if you have "open transcription" checked in your settings.

basnijholt commented 4 years ago

Thanks for your reply, "Open transcription mode (no custom voice commands)" is turned off.

Considering many others experience this problem, I am not sure whether it's due to my sentences.

Would you know how to debug this?

mathquis commented 4 years ago

I often had this error when Rhasspy had to generate pronunciations for unknown words when using Kaldi. What I did to fix it is download the profile files again and re-train. If it doesn't work, try looking at your kaldi/custom_words.txt file to check if everything is ok (does it have a new line at the end, etc.). Hope this helps.

basnijholt commented 4 years ago

@mathquis, indeed, thanks a lot. The culprit was my custom_words.txt (see below). I removed them and now it works again.

kef K EH F
spotify S P AA T IH F AY

@synesthesiam, shouldn't there be a better error message that points people in the right direction>?

synesthesiam commented 4 years ago

The custom words look fine to me. Was there anything in the log from Kaldi about them?