Limit the number of words to detect

Home Forums OpenEars Limit the number of words to detect

Viewing 5 posts - 1 through 5 (of 5 total)

  • Author
    Posts
  • #11623
    Ferm
    Participant

    Hello

    I only want to recognize one word at the time. Is there a way to limit recognition length to one word?

    I am thinking of setting a timer in pocketsphinxDidDetectSpeech for 1 second and invalidate the timer in pocketsphinxDidDetectFinishedSpeech. And if the timer fires, call suspendRecognition and then resumeRecognition in order to cancel the recognition after 1 sec.

    Would this be ok?

    I am also testing to set a very low secondsOfSilenceToDetect

    #11624
    Halle Winkler
    Politepix

    I don’t think the timer will get good results, people speak at different speeds and words have different lengths. How about ignoring anything after the first space in the hypothesis?

    #11625
    Ferm
    Participant

    My words are short.

    I do not want to keep feeding speech into the recognizer. If the speaker talks a long time without silence, will it affect memory consumption, buffer sizes?

    #11627
    Halle Winkler
    Politepix

    Are you seeing that in your profiling?

    #11628
    Ferm
    Participant

    I haven’t profiled yet I’m just assuming. It seems unnecessary to keep on recognizing when one already knows, in my case, that it won’t be a match.

    Is there a hardcoded maximum length of continuos speech limit? In that case maybe decrease this value.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.