Home › Forums › OpenEars plugins › (RapidEars) rapidEarsDidDetectLiveSpeechAsWordArray fired more then once › Reply To: (RapidEars) rapidEarsDidDetectLiveSpeechAsWordArray fired more then once
That’s what I would expect – first the first word in the utterance is spoken, then the second, and the hypothesis grows along with the number of words spoken. Your utterance starts with a single word and then a second is added, so the hypothesis matches that.
Something you could try if you want fewer callbacks is to experiment with the following settings in your initialization code for the PocketsphinxController+RapidEars object:
To use a slightly-less “live” method you can use these settings:
[self.pocketsphinxController setFasterPartials:FALSE];
[self.pocketsphinxController setFasterFinals:FALSE];
Alternately, you can ignore partial hypotheses (like your initial ones that just say “WORD” once) and wait for the final hypotheses in the rapidEarsDidDetectFinishedSpeechAsWordArray callback, but request them faster using these settings:
[self.pocketsphinxController setFinalizeHypothesis:TRUE];
[self.pocketsphinxController TRUE];