简体   繁体   中英

About Android Speech recognition

I use RecognizerIntent and implement the RecognitionListener and implement all of its call back methodsas to do voice commands. And I try to adjust the parameters EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS,EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS and EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS to decrease the listen time but it seems not work. How can I do ?

Another question is about the recognition speed. I just have five voice commands in my system. But I need to pass and wait for the recognition result every time. Can I preprocess something or other methods to accelerate the recognition speed?

For the task you described it make sense to use closed-dictionary ASR system, such as pocketsphinx-android . You will be able to fine-tune pre- and post-speech wait intervals as well as speed-up the decoding as the recognition happens on-board rather than going back and forth to the cloud.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM