Skip to main content

Posts

Showing posts with the label Android Voice Recognition Example

Android Voice Recognition Example

Name the Activity as VoiceActivity  and the layout file as voice_demo.Design the UI for the activity with a TextView,Button and ListView as follows.voice_demo.xml <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical" >
<TextView         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_margin="20dp"         android:text="Click the button below and start speaking"         android:textSize="18dp" />
    <Button         android:id="@+id/speakButton"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="center_horizontal"         andro…