Menu

pocketsphinx android onResult method

Help
rayava
2015-06-25
2015-06-25
  • rayava

    rayava - 2015-06-25

    Hi can we change the

    OnResult(Hypothesis hypothesis) { ..... }

    to something other like

    OnResult(Decoder Decoder) { ..... } so that we can dump some other things over there.

    i tried it but it is throws

    pocketsphinxactivity must be declared as abstract.

    how can i proocedd with that change?

     
    • Nickolay V. Shmyrev

      You can access decoder with recognizer.getDecoder() method. You just need to keep recognizer as a field of your class.

       

Log in to post a comment.