This tutorial explains how to use an android inbuilt feature ' speech to text ' through which you can provide speech input to your app. How voice input works? T he speech input will be streamed to a server, on the server voice will be converted to text and finally text will be sent back to our app. I have created a simple app to demonstrate this tutorial. Below is the screenshot of the app which contains a simple button to invoke speech input and a Text-View to display the converted speech text. Now follow the coding to develop this simple application 1. stt_layout.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_gradient" android:orientation="vertical" > ...
Learn with Samples