Can I get speech recognition in language other than English on Android?

佐手、 提交于 2019-12-11 02:46:02

问题


I am trying to build an application (which would use the Hindi language and other regional languages) to get speech voice commands.

I also need text to speech functionality in my application.

I was wondering if there was any way I could get a speech recognition library on Android? I did a quick Google search and found a couple of libraries for Hindi on the Internet but I am not sure if I can include them in my Android project. Can I?


回答1:


You can use pocketsphinx for your app.It has JAVA and Python API's for capturing and recognizing speech. By default it recognizes only English. But if you provide your own Language Model (LM) and Dictionary File(.DIC), you should be able to get it working.

Not directly straightforward as using an API, but can be certainly doable

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




回答2:


Android does support a few languages but not very many, I think the list currently is US, Japanese and Chinese. Not Hindi yet though I would think they are working to add new language support soon.

Over on the Android Developers page they have a good example.



来源:https://stackoverflow.com/questions/2227434/can-i-get-speech-recognition-in-language-other-than-english-on-android

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