How to compare the recognised result with already known answer?

Home Forums OpenEars How to compare the recognised result with already known answer?

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

  • Author
    Posts
  • #1017085
    elecxd
    Participant

    Hi,

    Just want to know if it’s possible to compare a recognised result with already known answer? For example, I already know the sentence is “Good Morning”, then after I say it, the app can compare my speech with the answer using some fuzzy logic algorithm and give a score. Is it possible? How to implement it?

    Thanks and Regards,

    #1017087
    Halle Winkler
    Politepix

    Welcome,

    This sounds like you just want to compare the speech to another NSString, is that correct or do you want to do something more complex than that? There’s an example of comparing with a known string in the sample app that ships with the distribution if you search for the string “CHANGE MODEL” in its view controller.

    #1017090
    elecxd
    Participant

    Hi Halle,

    Thank you very much.

    May I know which sample app? Let me download and check first.

    Regards,

     

    #1017091
    Halle Winkler
    Politepix

    Hi,

    The OpenEars distribution that you download from the main page contains the framework project (OpenEars.xcodeproj), and also a sample app project showing an implementation of the framework (OpenEarsSampleApp.xcodeproj).

    #1017111
    elecxd
    Participant

    Hi Halle,

    Thank you very much. I checked the sample. Another question, can I get the result in percentage between [0.0, 1.0], that’s mean how similarity between the result and the answer. How to set the threshold? Thanks again.

    Regards,

    elecxd

    #1017113
    Halle Winkler
    Politepix

    Hi elecxd,

    OK, I understand now what you want to do — you want to compare two audio files: an existing recording and the new incoming speech from the user, correct? There is no way to do this which is highly accurate because things like background noise and microphone distance will affect the score more than correctness will.

    If it’s just for fun and not a crucial application, you can put your original file through runRecognitionOnWavFileAtPath:usingLanguageModelAtPath:dictionaryAtPath:languageModelIsJSGF: and compare the score to the score of the incoming speech.

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