pocketsphinx fails with french

415 views Asked by At

I'm using the following code to setup recognizer (should give you an idea of the sequence of init actions and model used):

File modelsDir = new File(assetsDir, "models");
recognizer = defaultSetup()
        .setAcousticModel(new File(modelsDir, "hmm/lium_french_f2"))
        .setDictionary(new File(modelsDir, "dict/frenchWords62K.dic"))
        .setRawLogDir(assetsDir).setKeywordThreshold(1e-20f)
        .getRecognizer();
recognizer.addListener(this);

// Create keyword-activation search.
recognizer.addKeyphraseSearch(KWS_SEARCH, WAKEPHRASE);

I'm getting the following error - any idea why? Same code works perfect with English model.

java.lang.RuntimeException: Decoder_setSearch returned -1
        at edu.cmu.pocketsphinx.PocketSphinxJNI.Decoder_setSearch(Native Method)
        at edu.cmu.pocketsphinx.Decoder.setSearch(Unknown Source)
        at edu.cmu.pocketsphinx.SpeechRecognizer.startListening(Unknown Source)
0

There are 0 answers