Small-size speech recognition on Android to look for keywords

a 夏天 提交于 2019-12-10 10:39:44

问题


I'm developing a voice command app and need to use speech to text in Android. I want my app to work offline. Its yet possible only in jellybean version and it requires huge sized database to download and keep in the device. But i don't require whole database, i just want few keywords for the conversions.

Is it possible to record a .wav files on our own and set its reference to a particular word and when a voice input is given we could match the two voice tracks and recognize the corresponding word accordingly. So basically i want to make my own speech to text dictionary database? If yes then how can i achieve it?


回答1:


You can try Pocketsphinx on Android:

http://cmusphinx.sourceforge.net/wiki/tutorialandroid

It allows you to look for keywords. Database size is about 5mb now, but if you limit keywords it can be reduced to about 500kb. You can learn more about CMUSphinx from website

http://cmusphinx.sourceforge.net/wiki/tutorial




回答2:


Since your developing for Android, why don't you just use Androids base voice recognition software as your own. (Unless it's to be paid app)

Creating .wav files yourself will prove difficult for usage from people outside your vocal culture range, meaning e.g. Someone with a different accent won't be able to use it.

So access googles libaries for voice recognition.



来源:https://stackoverflow.com/questions/25452001/small-size-speech-recognition-on-android-to-look-for-keywords

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