Continuous Speech Recognition Android - Without Gaps

后端 未结 3 1577
暗喜
暗喜 2021-02-08 06:22

I have an activity that implements RecognitionListener. To make it continuous, every time onEndOfSpeech() I start the listener again:

s         


        
3条回答
  •  Happy的楠姐
    2021-02-08 06:54

    There are options like:

    intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 2000); // value to wait
    

    or

    intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, 2000);
    

    These ceased to work on Jelly Bean and above, but work on ICS and below - not sure if intended or a bug!

提交回复
热议问题