The Wayback Machine - https://web.archive.org/web/20200716235420/https://github.com/MycroftAI/mycroft-core/issues/2563
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pocketsphinx: Fallback to english model if language specific model doesn't exist #2563

Open
forslund opened this issue May 4, 2020 · 0 comments

Comments

@forslund
Copy link
Member

@forslund forslund commented May 4, 2020

When using a pocketsphinx wakeword mycroft tries to load a language specific model. If the model doesn't exist the load fails. (report on the forums)

This should be handled by using a fallback mechanism, so if no language specific model exists it should log a warning and fallback to using the english model that is included in mycroft-core.

At L105 in hotword_factory.py a line to set the model to the default en-us should be added.

The code will look something like

        if not exists(model_file):
            LOG.error('PocketSphinx model not found at ' + str(model_file))
            model_file = join(RECOGNIZER_DIR, 'model', 'en-us', 'hmm')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.