Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

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

Open
basnijholt opened this issue Feb 16, 2020 · 5 comments
Open
Labels
question Further information is requested

Comments

@basnijholt
Copy link

basnijholt commented Feb 16, 2020

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

@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
Copy link
Owner

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

@synesthesiam synesthesiam added the question Further information is requested label Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants