Closed Timoses closed 3 years ago
I've been hitting this all evening. The problem is that the CMU lextool seems to be broken and returning errors (but with an okay HTTP status). I made a PR that at least shows the error from lextool, but it doesn't fix the real issue.
Well, that's annoying. As a temporary measure, you should be able to install g2p_en==2.0.0
to be able to run locally, but it is kind of a pain. I will look for a better solution.
This should be resolved in multiple ways with the pronunciation generation changes in the v3.0.0 release.
Oddly, I get the same error again after a fresh install on MacOS this time (with 3.1.0 installed):
ERROR:kaldi.compiler:KaldiCompiler(): exception automatically adding word 'prev'
Traceback (most recent call last):
File "/Users/Timoses/code/voice/venv_caster/lib/python3.10/site-packages/dragonfly/engines/backend_kaldi/compiler.py", line 119, in handle_oov_word
pronunciations = self.add_word(word, lazy_compilation=True, allow_online_pronunciations=self.allow_online_pronunciations)
File "/Users/Timoses/code/voice/venv_caster/lib/python3.10/site-packages/kaldi_active_grammar/compiler.py", line 334, in add_word
pronunciations = self.model.add_word(word, phones=phones, lazy_compilation=lazy_compilation, allow_online_pronunciations=allow_online_pronunciations)
File "/Users/Timoses/code/voice/venv_caster/lib/python3.10/site-packages/kaldi_active_grammar/model.py", line 286, in add_word
pronunciations = Lexicon.generate_pronunciations(word, model_dir=self.model_dir, allow_online_pronunciations=allow_online_pronunciations)
File "/Users/Timoses/code/voice/venv_caster/lib/python3.10/site-packages/kaldi_active_grammar/model.py", line 176, in generate_pronunciations
raise KaldiError("cannot generate word pronunciation: no generators available")
kaldi_active_grammar.KaldiError: cannot generate word pronunciation: no generators available
WARNING:kaldi.compiler:KaldiCompiler(): Word 'prev' not in lexicon (will NOT be recognized; see documentation about user lexicon and auto_add_to_user_lexicon)
Oddly, I get the same error again after a fresh install on MacOS this time (with 3.1.0 installed):
Try to install pip install g2p-en
Oddly, I get the same error again after a fresh install on MacOS this time (with 3.1.0 installed):
Try to install
pip install g2p-en
Did and it works.
On fresh Fedora34 install using Dragonfly and Kaldi I get:
Any idea what could be wrong?