Mycroft-core: Pocketsphinx: Fallback to english model if language specific model doesn't exist

Created on 4 May 2020  路  1Comment  路  Source: MycroftAI/mycroft-core

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')
help wanted

Most helpful comment

I can take it

>All comments

I can take it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zacki84 picture Zacki84  路  10Comments

AMDphreak picture AMDphreak  路  10Comments

forslund picture forslund  路  6Comments

InconsolableCellist picture InconsolableCellist  路  8Comments

ryanleesipes picture ryanleesipes  路  4Comments