0
我正在試驗SpeechRecognizer ContinuousRecognitionSession。如果SpeechRecognizer的ContinuousRecognitionSession時間超過20秒,我不會說話。如何更改speechRecognizer中的超時ContinuousRecognitionSession
我一直在SpeechRecognizer.ContinuousRecognitionSession.Completed事件中獲取SpeechRecognitionResultStatus.TimeoutExceeded狀態。
我想改變默認的超時時間。我不確定我會在哪裏做。我試了下面的代碼
speechRecognizer.Timeouts.EndSilenceTimeout = new TimeSpan(1, 0, 0);
speechRecognizer.Timeouts.InitialSilenceTimeout = new TimeSpan(1, 0, 0);
speechRecognizer.Timeouts.BabbleTimeout = new TimeSpan(1, 0, 0);
speechRecognizer.ContinuousRecognitionSession.AutoStopSilenceTimeout = new TimeSpan(1, 0, 0);
感謝您的回覆。