speech recognition reduce possible search results

廉价感情. 提交于 2019-12-05 02:34:19

问题


I have started with Speech recognition using android, sl4a and python and so far, it works fine. My user is just supposed to input numbers between 0 and 9 with his voice. Is there a way to tell android to only search in those number and therefore reduce the time of recognition (and probably errors) ?


回答1:


No. You cannot change what google returns. You can only process the results.

Fortunately, you can process the results to increase the chance of a match.

For example, you could use a phonetic matching algorithm like Soundex

Using Soundex or something similar, if the recognizer hears something like "true" your code could still recognize it as the number 2.



来源:https://stackoverflow.com/questions/8778409/speech-recognition-reduce-possible-search-results

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