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?
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.
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?
You can access decoder with recognizer.getDecoder() method. You just need to keep recognizer as a field of your class.