我正在构建一个应用程序来记录用户的语音,然后将其转换为文本。来自这篇文章Stackoverflow Post我找到了源代码 android developers ,我已经运行了代码,但按钮文本显示为“RECOGNIZER NOT PRESENT”。我想我一定是缺少一些权限或其他东西,因为之前我创建了一个文本到语音转换器并且它工作正常。
任何想法可能是什么问题?
最佳答案
我不确定为什么识别器功能并非在所有设备上都可用。请务必安装并更新最新的 Android 版 Google 语音搜索。我相信它安装了最新的识别器。参见 http://www.google.com/mobile/voice-actions/这可能会有所帮助。
正如Dante Jiang 在Converting speech to text 中所说, 根据 this article , Google Voice Search是您真正需要的。
The Android SDK makes it easy to integrate speech input directly into your own application—just copy and paste from this sample application to get started. Android is an open platform, so your application can potentially make use of any speech recognition service on the device that's registered to receive a RecognizerIntent. Google's Voice Search application, which is pre-installed on many Android devices, responds to a RecognizerIntent by displaying the "Speak now" dialog and streaming audio to Google's servers—the same servers used when a user taps the microphone button on the search widget or the voice-enabled keyboard. (You can check if Voice Search is installed in Settings ➝ Applications ➝ Manage applications.)
关于android - 找不到语音转文本识别器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5253740/