daanzu / kaldi-active-grammar

Python Kaldi speech recognition with grammars that can be set active/inactive dynamically at decode-time
GNU Affero General Public License v3.0
332 stars 49 forks source link

cannot generate pronunciation error in kag 3.1.0 #67

Open m-spisiak opened 2 years ago

m-spisiak commented 2 years ago

Hi,

I ran into an issue after downloading the new models, date 20211030, they seem to be no longer able to generate pronunciation for unknown words. Error message as follows: kaldi_active_grammar.KaldiError: cannot generate word pronunciation: no generators available

is this on purpose, or am I missing something? Can it be remedied somehow?

Thanks a lot for a reply!

m-spisiak commented 2 years ago

I just found out that it is not caused by the new models, but by something else in my newly checked out repository. I have my own repo with kaldi-active-grammar and dragonfly2[kaldi] as dependecies. I will dig deeper tomorrow.

m-spisiak commented 2 years ago

I found out that the problem appears with kag v 3.1.0 and dragonfly2 0.34.0 when reverting back to kag 2.1.0 and dragonfly2 0.33.0 the error disappears

any ideas?

LexiconCode commented 2 years ago

Make sure g2p_en is installed pip install g2p-en==2.0.0 for offline generate pronunciation.

Timoses commented 1 year ago

Duplicate of https://github.com/daanzu/kaldi-active-grammar/issues/62