How to make voice recognition check against a local database in android?

戏子无情 提交于 2019-12-19 09:42:40

问题


Do you remember in old cellphones you could make a speech shortcut to call a person.

I am trying to make an app in android with that function. The user records a word or sound it wants to control the application with and the voice-recognizer will only check if the sound it hears equals the sound previously recorded.

Does anyone know how to make this or know of a guide? I've been searching for months without finding a satisfying solution.

Thanks


回答1:


You need to convert both reference sounds and recorded sound to features. For that you need to split sound on frames and extract FFT or directly mel-cepstrum. You can use any MFCC library out there for that.

After you get features, you can compare them with DTW algorithm. You can find some details here

http://en.wikipedia.org/wiki/Dynamic_time_warping

The DTW will return you the threshold which you can use to select the right person to call to.

Similar quesitons is

Simplest algorithm of measuring how similar of two short audio



来源:https://stackoverflow.com/questions/15763419/how-to-make-voice-recognition-check-against-a-local-database-in-android

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