Voice Recognition without Internet in Android

瘦欲@ 提交于 2019-12-12 08:33:24

问题


I have been looking for several voice recognition libraries that supports android but none of them functions without server call or without using internet. My requirement is to detect some particular keywords and perform some actions accordingly without internet i.e. the keyword analysis should be done locally. So is there any voice recognition library that is capable of doing so. CMU Sphinx is the only toolkit that people say can achieve this but it still needs an algorithm to spot a keyword in a speech.


回答1:


You can use Pocketsphinx either with a statistical model which you can train on a corpus that reflects the language that the users are likely speak with your app, or you can define a JSGF grammar which explicitly defines the language as a set of context-free rules. In both cases you need to have the acoustic model and the mapping of phonetic symbols to orthographic words. The CMU Sphinx project provides these resources for English and a few other languages.

Once the speech is recognized it becomes a simple string to which you can apply any "spot the keyword" algorithm you wish to apply.

An example of a Pocketsphinx-based Android app that uses JSGF-based speech recognition is Inimesed.



来源:https://stackoverflow.com/questions/10991442/voice-recognition-without-internet-in-android

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