How do I activate button pressed event?

Home Forums OpenEars How do I activate button pressed event?

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

  • Author
    Posts
  • #1022541
    okmred
    Participant

    Ok, so I’m reviewing the documentation and am not clear on how to use a voice command in an app. How do you associate the word, stop with a stop button and have it perform that action? Thanks for any help or specific links to resources to read.

    #1022543
    Halle Winkler
    Politepix

    Welcome,

    OpenEars performs continuous recognition, meaning that touch events are not used in order to start or stop recognition, but instead there is ongoing listening and you trigger the events of your app based on speech that is recognized.

    Please check out the sample app that ships with OpenEars (it’s in the folder OpenEarsSampleApp and is called OpenEarsSampleApp.xcodeproj) in order to see a complete example of an app that performs the major functions you’ve mentioned, or step through the tutorial tool here, which also answers those questions with a step-by-step approach: https://www.politepix.com/openears/tutorial

    #1022545
    okmred
    Participant

    But it does not work with the simulator…correct?

    #1022547
    Halle Winkler
    Politepix

    It works, but you can’t use it to evaluate how accurate recognition is. Recognition is much less accurate on the Simulator.

    #1022548
    okmred
    Participant

    I can compile and run, but the simulator just says “not possible to start recognition loop” in the status area??

    Ideas?

    #1022550
    Halle Winkler
    Politepix

    Nope, if there is something unusual about your host machine the Simulator might not work, so you’d need to troubleshoot your machine settings for that – I regretfully can’t help with that at all.

    You can check out the post Please read before you post – how to troubleshoot and provide logging info here to see how to turn on the logging that provides troubleshooting information for this kind of issue so you can troubleshoot it further.

    #1022552
    okmred
    Participant

    Ok, thats fine, thanks.

    What I am missing , is the example of saying “stop” and having a stop button action performed. Which sample were you pointing me to?

    Thanks for additional direction.

    #1022553
    Halle Winkler
    Politepix

    The sample app shows how to trigger actions with speech (the example in there is the speech “CHANGE MODEL”, which triggers a change of language model).

    #1022554
    okmred
    Participant

    ahhhhhhh……. Got it, thanks. I was not looking for that …exactly.

    Ok, done.

    Thanks again.

    I’m sure I’ll be back, but this has been a good day.

    Have a great evening.

    #1022555
    Halle Winkler
    Politepix

    Super! Have a great evening yourself.

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