Menu

Score of PocketSphinx-Android Grammar search result

Help
2017-03-03
2017-03-03
  • Abdullah Al Farah

    Hi,
    I am using latest pocketshphinx-android-demo (version pocketsphinx-android-demo-5prealpha) project, I was checking the grammar search. During my test I found that the recognition always returns a result text within the grammar, even if the audio contains a random sound.

    So I looked into the result object in onResult(Hypothesis hypothesis)and the object contains score hypothesis.getBestScore() along with recognised text hypothesis.getHypstr().
    I was hoping through this score may be able to identify if text is a correct recognition or a similar text, but unfortunately found the value random negative integers for both correct and wrong recognitions (ranged around -600 to -3500).

    Is there anyway to identify correct recognitions in grammar search?

    Thank you very much.

     

    Last edit: Abdullah Al Farah 2017-03-03
    • Nickolay V. Shmyrev

      There is no way to listen continuously with grammars. You have to use keyword spotting search with multiple keyphrases.

       
      • Abdullah Al Farah

        Yes I am using keyword spotting search with keyphrase. I configured multiple named search like the demo project, after keyword in detected then switching to grammar search. In grammar search it's always returns within the grammar even if I said some words which doesn't exists in the grammar.

         
        • Nickolay V. Shmyrev

          This is an expected behavior.

           
          • Abdullah Al Farah

            I understand, but would like to know, if there is anyway to differentiate between a exact match and a somewhat match.

             
            • Nickolay V. Shmyrev

              No

               

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.