How to make a Robot App!, Speech to Text Recognizer - Android Studio

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.

Speech to Text Recognizer

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.


In this tutorial you will learn the following: ★ Voice to Text Recognize ★ Play Audio / Music inside app ★ Loading url / Website from app ★ A simple Robot App


▶ How to make a Robot App!, Speech to Text Recognizer
Video Link: https://youtu.be/7o-CeZK0kf4


***CODEs are given below, Copy and Paste for your Android Project:

Please Subscribe: JonyApps YouTube Channel Subscribe: JonyApps


***add dependencies in the build.gradle file

build.gradle(:app)
implementation 
"android.arch.lifecycle:extensions:1.1.1"
annotationProcessor 
"android.arch.lifecycle:compiler:1.1.1"

***add Permission inside the AndroidMenifest.xml file

AndroidMenifest.xml
<uses-permission 
android:name="android.permission.RECORD_AUDIO"/>
<uses-permission 
android:name="android.permission.INTERNET"/>

***Create ic_android_black.xml and ic_android_green.xml files inside the drawable folder and paste below codes

Click here to view code - ic android black.xml

Click here to view code - ic android green.xml


***Create attrs.xml file inside the value folder and paste below codes

Click here to view code - attrs.xml

***Download below files and add into your android project

Click here to download - CircleView.kt

Click here to download - RippleView.kt

Click here to download - SpeechRecognizer.kt

***Create raw folder inside the res folder and and add below Audio files into your android project

Click here to download - about_me.mp3

Click here to download - play_music.mp3


Please Subscribe: JonyApps YouTube Channel Subscribe: JonyApps


If you have any comments, please post below.

Read Our Posts

*Install Our Apps from Google Play Store
->Installing Android Studio
->Installing JDK on Windows
->Make Your 1st Android App
->Custom Toast Message
->Android Snackbar
->Android Alert Dialog
->Android Custom ListView
->RecyclerView with CardView
->Android Notifications
->Android Splash Screen
->Convert Website into App
->Custom Buttons
->Custom TextView
->ProgressBar- Glide/Picasso
->Implement app-ads.txt