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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using latest
pocketshphinx-android-demo
(versionpocketsphinx-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 scorehypothesis.getBestScore()
along with recognised texthypothesis.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
There is no way to listen continuously with grammars. You have to use keyword spotting search with multiple keyphrases.
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.
This is an expected behavior.
I understand, but would like to know, if there is anyway to differentiate between a exact match and a somewhat match.
No