13

When I press and hold the search key on my Droid it starts the built in Android voice recognition.

While it is listening, if I speak the words "Note to self" and then keep talking, when done I get an email ready to send complete with the STT translation and the amr encoded audio file as an attachment.

I want to include this same functionality in my own program. More specifically, I need access to the audio file that is (or appears to be) created by speechrecognizer.

How do I access this audio file?

I am using api level 7. If I try to record and use speechrecognizer at same time it fails.

Any help appreciated.

Doug
  • 1,991
  • 4
  • 25
  • 35
  • I was all confused, but now I realize the "note to self" is a special voice action as described in http://www.google.com/mobile/voice-actions/ – Michael Levy May 04 '11 at 13:17
  • Try this? http://stackoverflow.com/questions/2319735/voice-recognition-on-android-with-recorded-sound-clip – chuckliddell0 Feb 14 '12 at 09:42
  • See: http://stackoverflow.com/questions/25463875/how-does-google-keep-do-speech-recognition-while-saving-the-audio-recording-at-t – Kaarel Aug 24 '14 at 13:03

1 Answers1

3

I don't think the com.google.android.voicesearch application provides access to the recorded audio files. The files are temporarily stored in /data/data/com.google.android.voicesearch/files after the user makes a recording, but I'm not sure how you would get read access to those files.

Mike Bockus
  • 2,079
  • 17
  • 23