Android:同时访问麦克风(RecognizerIntent +自己的应用程序)
我的应用程序使用 RecognizerIntent 来记录用户的声音并进行一些语音识别。
现在,我想将结果与一些开源语音识别引擎进行比较。他们中的大多数都将音频文件作为输入。我的想法是,捕获Android麦克风的声音,并同时启动RecognizerIntent。但似乎访问麦克风是排他性的。
- 是否可以将 RecognizerIntent 与录制的音频流一起使用?
- 是否可以通过两个 Activites 同时访问麦克风?
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.
- Is it possible to use the RecognizerIntent with a recorded audio stream?
- Is it possible to access the microphone simultaneously with two Activites?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我试图找到同一问题的解决方案,但没有成功。我们探索的另一种方法是访问 Google 用于识别的网络服务。我在 Google 语音搜索语音识别服务上发布了一个问题,但问题仍然存在无人应答。
在 Android 上使用录制的声音剪辑进行语音识别?< 有一篇很好的文章/a> 解决了这个问题,我相信答案来自 Google 员工。
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.
不幸的是,您的两个问题的答案都是否,但有计划将其扩展到 Gingerbread 和 3.0:http://www.mobiclue.com/android-3-0-gingerbread-features-supported-phones.html
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
我确信可以使用 RecognizerIntent 并保存音频,问题是如何?
单击麦克风后,您可以在 Google Keep Android 应用程序中看到它正在执行此操作。
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.