how to use openears framework to "parrot" back to you what you said

Home Forums OpenEars how to use openears framework to "parrot" back to you what you said

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

  • Author
    Posts
  • #1017568
    doogie001
    Participant

    I have been developing with the openears framework and I need to be able to “parrot back” or re-itereate what the user said when openears was listening.

    Looking through the code, I am not sure how to accomplish this. Any help is much appreciated.

    Thank You

    #1017570
    Halle Winkler
    Politepix

    Hi doogie,

    Which part of the process are you having trouble with?

    #1017571
    doogie001
    Participant

    After the user speaks and openears processes, I want to be able to get at what the user has said. This will be like siri in the repect that it writes out or speaks exactly what the user said before it continues to process the users request. It seems though that looking at the code and several logs produced that it only will understand what you have placed in the Language model generator.

    So unless I have the “phrase” or words that the user will speak, I don’t think I can get at all that the user has said. This may be the “nature of the beast” for offline speech recognition but I just want to make sure this is the case.

    For example: I want to say “This is a test can you understand what I am saying”. But my Language model generator is initialized with the words @”cat”, @”mouse”. @”dog”, I don’t think I’ll be able to get at what the user intially said. Is this a correct assesment or am I missing someting here.

    In my testing I was looking at the coentents of words from the method – (void) rapidEarsDidDetectFinishedSpeechAsWordArray:(NSArray *)words andScoreArray:(NSArray *)scores {
    }
    Thanks for your help

    #1017572
    Halle Winkler
    Politepix

    Hi doogie,

    That’s correct, it’s always necessary to create a language model or grammar containing the words that can be recognized. The interesting thing about it is that this isn’t actually a property of offline recognition — even Google Voice Search and Siri have to use pre-defined language models and grammar.

    The difference is just that they are being run on enormous server farms and then the models are shared across many user sessions simultaneously, so it is possible for their language and acoustic models to be so large and exist in so much memory that they can create the illusion of detecting “anything”, even though at some point in time a (very big) language model like the output of LanguageModelGenerator was made. Since we’re just running on a phone, which is like a sliver of the available memory and cpu power of just a single server, we have to be very frugal and efficient with what is possible to recognize so it has to be constrained vocabularies which are in some way specific to the task at hand.

    Luckily you can swap between vocabularies very quickly with OpenEars, or even generate them dynamically using LanguageModelGenerator based on the needs of the moment, so the usual approach for offline recognition is to have vocabularies which change based on the mode of the app.

    #1017573
    doogie001
    Participant

    Thank you for your quick and detailed reply.

    #1017574
    Halle Winkler
    Politepix

    No problem! Feel free to follow up if you have questions about the specifics of setting up vocabularies or switching between them.

    #1017651
    Ruby
    Participant

    Hi i am using openears framework.i have downloaded the openears link there i came to know how to use openear framework.my problem is when i am in same viewcontroller it is recognise my voice and giving response but when i change my view i mean i go to previous view and again came back to same view then the application is crashing and reason for crash is please turn on [OpenEarsLogging startOpenEarsLogging] plese say me the solution for this

    Thank you

    #1017652
    Halle Winkler
    Politepix

    Welcome Ruby,

    Can you read the instructions in this post and show me the logging output that you get as a result?

    https://www.politepix.com/forums/topic/install-issues-and-their-solutions/

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