Menu

Problem with KeyphraseSearch

Help
2015-10-15
2015-10-15
  • Anton Lunegov

    Anton Lunegov - 2015-10-15

    Hello! I'm using pocketsphinx for Android. This is my default settings:

      recognizer = defaultSetup()
                    .setAcousticModel(new File(assetsDir, "ru-us-ptm"))
                    .setDictionary(new File(assetsDir, "cmudict-ru-us.dict"))
                    .setRawLogDir(assetsDir)
                    .setKeywordThreshold(1e-7f)
                    .setBoolean("-allphone_ci", true)
                    .getRecognizer();
    
                     recognizer.addKeyphraseSearch(KWS_SEARCH, KEYPHRASE);
    

    Also, I have two hot words: private final String KEYPHRASE = "окей адм";

    The problem is that recognizer.startListening can catch the first word without second.

    What i'm doing wrong? Please, help.

     

    Last edit: Anton Lunegov 2015-10-15
    • Nickolay V. Shmyrev

      You can set more tough threshold like 1e-3 to avoid false alarms.

      In case you can not find a good threshold you can try longer keyphrase.

       
      • Anton Lunegov

        Anton Lunegov - 2015-10-15

        Thank you, I will try it.

         
      • Anton Lunegov

        Anton Lunegov - 2015-10-15

        It didn't help me. Recognizer still catсhing first word .

         
  • Anton Lunegov

    Anton Lunegov - 2015-10-15

    It didn't help me. Recognizer still catching first word.

     
  • Anton Lunegov

    Anton Lunegov - 2015-10-15

    I did it) Sorry, That was my mistace.

     

Log in to post a comment.