Offline Speech Recognition in Android

二次信任 提交于 2019-12-02 02:23:54
Will Bobo

Not with Google.

You have to use another solution like CMU Sphinx. Check here : Android: Speech Recognition without using google server

Michael Hoots

Actually you can use SpeechRecognizer offline.

  • Go to Setting -> “Language and Input”
  • Choose the keyboard from “Keyboard & Input methods” section and enable “Google Voice Typing“
  • Go back to the previous screen “Language & input“, you will see the “Google voice typing” enabled.
  • Tap on “Offline speech recognition“.
  • Download the languages.
  • Now you should be able to use Speech To Text in offline mode.

The problem with this is it is not continuous without using a loop and using a loop with SpeechRecognizer is absolutely annoying due to the constant beeping sound. There are ways around the beeping sound but most of them mute the beeping sound and everything on the same audio stream as it.

Also mentioned in the steps, you also have to download "Google Voice Typing" and a language for it taking up a lot more storage space. Overall you can use SpeechRecognizer offline but it's a major hassle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!