I’m trying to implement speech recognition and I have problems in trying to implement it.
I found an implementation that seemingly fits my needs https://github.com/hiteshsahu/Android-TTS-STT/blob/master/app/src/main/java/com/tcs/speechtotextpoc/translation_engine/translators/SpeechToTextConvertor.java
but I don’t know how to implement it Nativescript.
I have a few questions regarding the implementation of the code and doing it in Typescript:
How do I pass in the app context?
I tried passing in app.android.currentContext, but it only crashes the app.
How do I implement this line of code?
class CustomRecognitionListener implements RecognitionListener
Those are the ones I can’t figure out for now although I am still clueless about Native APIs and would highly appreciate your help in implementing a custom Speech Recognition Intent.