Igpay: launch the Voice Search activity

 

Say a sentence and see it translated into Pig Latin. This Activity launches the Voice Search Activity, which uploads the sound file to a server for processing. The translation into Pig Latin is performed by regular expressions.

Source code in Igpay.zip

  1. IgpayActivity.java
  2. main.xml: vertical and horizontal LinearLayouts.
  3. strings.xml
  4. AndroidManifest.xml

Voice Search on the Android Emulator

I would have been happy to go to market.android.com and download a free copy of the most recent version of Voice Search onto the Android Emulator. But the phone number of emulator is 1–555–521–5554, and a phone with this number cannot be associated with a Google account.

I therefore had to run this project on my Motorola MB612 phone, which has Voice Search version 2.0.2.

Things to try

  1. Can we do voice recognition in our own Activity? See the classes in the android.speech package.