I'm trying to implement speech recognition for my MAUI app with Android.speech. I'm following this article. At step to set recognition listener, I had to creat a class RecognitionListener
inheriting IRecognitionListener
, implemented those functions within and passed RecognitionListener
variable into SpeechRecognizier.SetRecognitionListener
.
However I came across this error:
error XA4212: Type
AndroidSpeech.RecognitionListener
implementsAndroid.Runtime.IJavaObject
but does not inheritJava.Lang.Object
orJava.Lang.Throwable
. This is not supported.
Please help me!
P/S: I can use other speech recognition API like Azure or Google, which require internet to authenticate subscription. But I want to try this out as an offline speech recognition library.