是否可以在 Android 项目之外使用 Android API?

发布于 2024-11-03 05:45:03 字数 164 浏览 2 评论 0原文

更具体地说,非 Android Java 应用程序是否可以使用 Android 的语音识别功能。我想我可以使用 cmu sphinx 或类似的东西,但是将语音输入发送到进行真正识别并返回字符串数组的服务器的整个过程似乎更容易设置,并减少了项目的大小。此外,如果可能的话,该项目将能够使用谷歌的(巨大的)语音语料库。

More specifically, is it possible for an non-android Java application to use android's speech recognition. I figured I could use cmu sphinx or something similar, but the whole sending voice input to a server that does the real recognition and returns an array of strings seems to be much easier to set up an reduces the size of the project. Also, if this is possible, the project will be able to use Google's (ginormous) speech corpus.

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

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

发布评论

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

评论(2

余罪 2024-11-10 05:45:03

更具体地说,非 Android Java 应用程序是否可以使用 Android 的语音识别功能。

不,据我所知,它不是开源的。

More specifically, is it possible for an non-android Java application to use android's speech recognition.

No. AFAIK, it is not open source.

眼睛会笑 2024-11-10 05:45:03

请参阅https://stackoverflow.com/questions/5613167 /source-code-for-the-googles-voice-search-activity/5621683#5621683

从该线程:

我不知道 Android 源是否可用,但 Google 确实升级了 Chrome 以包含语音识别和这些来源都是可用的。我认为 Google 不希望人们直接调用此服务,如果这样做,它可能会违反某些地方的服务条款,但请查看 http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ 查看该服务我怀疑 Chrome 语音识别背后的原理与 Android 类似。

正如那篇文章所说:

http://src.chromium.org/ viewvc/chrome/trunk/src/content/browser/speech/

看起来音频已被收集
从麦克风,然后通过
HTTPS POST 到 Google 网络服务,
它以 JSON 对象响应
结果。透过他们的
音频编码器代码,它看起来像
音频可以是 FLAC 或 Speex,但是
看起来像是某种
Speex的特别修改版本-
我不确定它是什么,但它只是
看起来不太对劲。

另请参阅 Google 的语音搜索语音识别服务 - 它可能有一些有用的链接信息。

或者,也可以使用商业语音识别服务,请参阅 http://yapme.com/speech-cloud.html< /a>、Nuance、http://www.ispeech.org/developers 以及其他列出的服务器端语音识别

See https://stackoverflow.com/questions/5613167/source-code-for-the-googles-voice-search-activity/5621683#5621683

From that thread:

I don't know if the Android sources are available, but Google did upgrade Chrome to include speech recognition and those sources are available. I don't think that Google wants people to call this service directly, and it likely violates some terms of service somewhere if you do, but check out http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ to see the service behind Chrome speech recognition which I suspect is similar to Android.

As that article says:

http://src.chromium.org/viewvc/chrome/trunk/src/content/browser/speech/

It looks like the audio is collected
from the mic, and then passed via an
HTTPS POST to a Google web service,
which responds with a JSON object with
the results. Looking through their
audio encoder code, it looks like the
audio can be either FLAC or Speex- but
it looks like it's some sort of
specially modified version of Speex-
I'm not sure what it is, but it just
didn't look quite right.

Also, see Google's voice search speech recognition service - it might have some useful links to information.

Alternatively, there are commercial speech recognition services available see http://yapme.com/speech-cloud.html, Nuance, http://www.ispeech.org/developers, and others listed at Server-side Voice Recognition.

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