Android: Accessing the microphone simultaneously (

2019-02-02 14:23发布

my app uses the RecognizerIntent to record the user's voice and doing some speech recognition.

Now, I'd like to compare the results to some open source speech recognition engines. Most of them take an audio file as input. My thought was, to capture the sound from the Android's microphone, and start the RecognizerIntent at the same time. But it seems, that accessing the microphone is exclusive.

  1. Is it possible to use the RecognizerIntent with a recorded audio stream?
  2. Is it possible to access the microphone simultaneously with two Activites?

3条回答
在下西门庆
2楼-- · 2019-02-02 14:46

I know for sure that is possible to use RecognizerIntent and save the audio, the question is how?

You can see in Google Keep Android applications doing it once you click in the microphone.

查看更多
我想做一个坏孩纸
3楼-- · 2019-02-02 14:58

Unfortunately the answer to both of your questions is no, but there are plans to extend this for Gingerbread and 3.0: http://www.mobiclue.com/android-3-0-gingerbread-features-supported-phones.html

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-02-02 15:03

I have tried to find a solution to the same problem and have not had success. One other approach we explored was to access the web service that Google uses for recognition. I posted a question at Google's voice search speech recognition service, but it still goes unanswered.

There was a good post at Voice recognition on android with recorded sound clip? that dealt with this question and I believe the answer came from a Google employee.

查看更多
登录 后发表回答