05 May, 2020
In this tutorial, we will create a Robot App! This is just for fun! Actually we will build Speech to Text Recognizer. Our app will take speech as input and return text as output.
Android supports Google inbuilt speech to text API. We will be creating a simple application with android logo button. When you tap the button app will receive your voice as input and input will be converted into text, and then displayed as part of a Text View. We will also add some function so that app do some tasks when it get some specific text.
implementation "android.arch.lifecycle:extensions:1.1.1" annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
<uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission android:name="android.permission.INTERNET"/>
Click here to download - SpeechRecognizer.kt
***Create raw folder inside the res folder and and add below Audio files into your android project