Android:同时访问麦克风(RecognizerIntent +自己的应用程序)

发布于 2024-10-11 23:02:23 字数 254 浏览 6 评论 0原文

我的应用程序使用 RecognizerIntent 来记录用户的声音并进行一些语音识别。

现在,我想将结果与一些开源语音识别引擎进行比较。他们中的大多数都将音频文件作为输入。我的想法是,捕获Android麦克风的声音,并同时启动RecognizerIntent。但似乎访问麦克风是排他性的。

  1. 是否可以将 RecognizerIntent 与录制的音频流一起使用?
  2. 是否可以通过两个 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.

  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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

会傲 2024-10-18 23:02:23

我试图找到同一问题的解决方案,但没有成功。我们探索的另一种方法是访问 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.

黎夕旧梦 2024-10-18 23:02:23

不幸的是,您的两个问题的答案都是,但有计划将其扩展到 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

哥,最终变帅啦 2024-10-18 23:02:23

我确信可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文