【发布时间】:2021-02-23 20:17:49
【问题描述】:
我已尝试放置以下意图数据:
Long googleVoiceTimeout = new Long(15000);
speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, googleVoiceTimeout);
speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, googleVoiceTimeout);
speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS,googleVoiceTimeout);
speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS,true);
但即使做了所有这些之后,它仍然会在一秒钟的沉默后停止聆听。没有一致性。帮忙?
非常感谢
【问题讨论】:
标签: android speech-recognition