问题描述
Android的4.1包括离线语音输入。你可以看到这个当您单击弹出键盘上的麦克风,它仍然有效,如果你没有网络连接。不过,它看起来像 RecognizerIntent
API最终还是需要一个网络连接,当你想要做语音识别从您的应用程序。
Android 4.1 includes offline voice typing. You can see this when you click the microphone on the pop-up keyboard, it still works if you have no network connection. However, it looks like the RecognizerIntent
API still ends up requiring a network connection when you want to do speech recognition from your app.
有没有从我的应用程序访问新的Android的离线语音输入功能的API?
Is there an API for accessing new the offline voice typing feature in Android from my app?
推荐答案
Android使用两个不同的API,用于语音:语音的键入的(键盘上的键)和语音的确认的(其他地方)。语音输入启用脱机,语音识别是不是(4.1软糖)。
Android uses two different APIs for voice: voice typing (key on the keyboard) and voice recognition (everywhere else).Voice typing is enabled offline and voice recognition is not (for 4.1 JellyBean).
这就是为什么在键盘按键脱机工作,但在其他地方一样。出于某种原因,谷歌决定让这两个不同的API。
This is why the key in the keyboard works offline, but nowhere else does.For some reason Google decided to make these two separate APIs.
在这里看到语音输入的详细信息:http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html
See here for more info on voice typing:http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html
这篇关于从我的应用程序中使用离线语音到文本的Android 4.1(果冻豆)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!