android - isRecognitionAvailable 在 android 上返回 false

标签 android speech-recognition google-speech-api

我在 Android 上使用 android.speech.SpeechRecognizer。 在某些情况下,isRecognitionAvailable 会返回 false,因此我无法识别语音。 没有办法在手机上启用 android.speech.SpeechRecognizer 吗? 或者有没有类似的服务?

最佳答案

我知道它已经过去了太多时间,但这可能会对某些人有所帮助。

我遇到了一个非常奇怪的问题。我知道语音识别器曾经在我的 Android 5.1.1 手机上运行过。但是,isRecognitionAvailable 开始返回 false。但是,createSpeechRecognizer 正在创建对象(尽管它没有开始监听)。这很奇怪,因为根据文档:

isRecognitionAvailable:

Checks whether a speech recognition service is available on the system. If this method returns false, createSpeechRecognizer(Context) will fail.

我最终进入 PlayStore 并寻找“Ok google”,我发现 Google LLC 已被禁用。我启用了它,语音识别器又开始工作了。

希望对大家有帮助

关于android - isRecognitionAvailable 在 android 上返回 false,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45950605/

相关文章:

C#返回语音拼音而不识别

javascript - 拆分 Ogg Opus 文件流

python - Python 3.4 的语音识别好用吗?

android - 如何处理应用程序对 3d 派对的依赖

Android:自定义搜索栏缩略图显示不正确

android - 在 x86 上使用 Eclipse 调试(理解)Dalvik VM

android - 如何实现 android L like snack bar for below 4.2?

tensorflow - 语音识别(使用ML?),而不是语音识别

python - 如何修复 : MatplotlibDeprecationWarning: shading ='flat' when X and Y have the same dimensions as C is deprecated since 3. 3

php - 谷歌语音 API "Sample rate in request does not match FLAC header"