Menu

Success rate of a recognition

2011-09-19
2012-09-22
  • darkingthereturn

    Hi!!!
    Is there a way to get, through pocketsphinx, a sort of "success rate" or a
    mark that indicates how much pocketsphinx "thinks" that the word decoded is
    correct? I mean, pocketsphinx gives a mark in decoding audio? I would like to
    know it because, considering the mark, i can establish if the audio decoded
    it's rubbish or effectively a word!

    Another question: I've got some float arrays where sound is sampled. Can i
    pass directly the flot array to pockesphinx api(s) for recognition?

    Thank you and sorry for my worst english.

     
  • Nickolay V. Shmyrev

    Is there a way to get, through pocketsphinx, a sort of "success rate" or a
    mark that indicates how much pocketsphinx "thinks" that the word decoded is
    correct? I mean, pocketsphinx gives a mark in decoding audio? I would like to
    know it because, considering the mark, i can establish if the audio decoded
    it's rubbish or effectively a word!

    This is called "confidence score" or "posterior probability". You can access
    this value through API:

    /**
     * Get posterior probability.
     *
     * @note Unless the -bestpath option is enabled, this function will
     * always return zero (corresponding to a posterior probability of
     * 1.0).  Even if -bestpath is enabled, it will also return zero when
     * called on a partial result.  Ongoing research into effective
     * confidence annotation for partial hypotheses may result in these
     * restrictions being lifted in future versions.
     *
     * @param ps Decoder.
     * @param out_uttid Output: utterance ID for this utterance.
     * @return Posterior probability of the best hypothesis.
     */
    POCKETSPHINX_EXPORT
    int32 ps_get_prob(ps_decoder_t *ps, char const **out_uttid)
    

    I've got some float arrays where sound is sampled. Can i pass directly the
    flot array to pockesphinx api(s) for recognition?

    No, you need to convert the data to the array of shorts

     
  • Nickolay V. Shmyrev

    Please use Help forum to ask for help. This forum is about generic discussion
    about speech recognition.

     
  • darkingthereturn

    I'm sorry for wrong section about this topic. So, for the array, i've got to
    convert them in shorts. And then? What function will decode it? Thank you for
    the ps_get_prob function!

     

Log in to post a comment.