Friday, 15 April 2011

android - Sl4a recognize speech in background -



android - Sl4a recognize speech in background -

i started programming sl4a (in qpython) , great. tried utilize droid.recognizespeech function. 1 works fine too, in background listening keyword, google's 'ok google'. looked around, cannot find anything. don't know how can implement it. inquire you, can tell me, if possible, how create recognize speech listening in background waiting keyword?

i've toyed thought of doing this, never found useful practical application it. here's summary of research, hope it's plenty started: 1. speech recognizer facade has multiple parameters. usually, puts "none" in of them except first. here's facade in it's actuality:

recognizespeech: recognizes user's speech , returns result. prompt (string) text prompt show user when asking them speak (optional) language (string) language override inform recognizer should expect speech in language different 1 set in java.util.locale.getdefault() (optional) languagemodel (string) informs recognizer speech model prefer (see android.speech.recognizeintent) (optional) returns: (string) empty string in case speech cannot recognized.

so you're looking languagemodel in case, alternative restricted 2 types. web search model , free-form speech model. you're looking free-form speech model in case. here's little more info on model horse's mouth: google on free-form language model

once you've looked @ free-form speech model, should help chrome's continuous speech recognition model, should share lot of same characteristics of free-form language model. hope helps set on right direction

android python speech-recognition sl4a qpython

No comments:

Post a Comment