SpeechRecognizer with Audio recording in Android
I have successfully accomplished this with the help of CLOUD SPEECH API.
You can find it's demo by google speech.
The API recognizes over 80 languages and variants, to support your
global user base. You can transcribe the text of users dictating to an
application’s microphone, enable command-and-control through voice, or
transcribe audio files, among many other use cases. Recognize audio
uploaded in the request, and integrate with your audio storage on
Google Cloud Storage, by using the same technology Google uses to
power its own products.
It uses audio buffer to transcribe data with help of Google Speech API. I have used this buffer to store Audio recording with help of AudioRecorder.
So with this demo we can transcribe user's speech parallely with Audio Recording.
Android record audio while doing speech recognition
As the comments state, only one mic access is permitted/possible at a time.
For the SpeechRecognizer the attached RecognitionListener has a callback of onBufferReceived(byte[] buffer) but unfortunately, Google's native recognition service does not supply any audio data to this, it's very frustrating.
Your only alternative is to use an external service, which won't be free. Google's new Cloud Speech API has an Android example.
Related Topics
Getview Returning Null When Fragment Has Been Created from an Activity
How to Set the Edittext Keyboard to Only Consist of Numbers on Android
Alphabetindexer with Custom Adapter Managed by Loadermanager
Android.Content.Activitynotfoundexception: Unable to Find Explicit Activity Class
How to Strip or Escape HTML Tags in Android
How to Pass Drawable Between Activities
What's "Tools:Context" in Android Layout Files
How to Get the APK of an Installed App Without Root Access
Listview Scroll to the End of the List After Updating the List
How to Measure the Tilt of the Phone in Xy Plane Using Accelerometer in Android
How to Check If an Activity Is the Last One in the Activity Stack for an Application
How to Compile the Android Aosp Kernel and Test It with the Android Emulator
Resolved Versions for App (22.0.0) and Test App (21.0.3) Differ
Android: Bitmapfactory.Decodestream() Out of Memory with a 400Kb File with 2Mb Free Heap