Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 2.01 KB

set-speech-recognition-timeouts.md

File metadata and controls

47 lines (31 loc) · 2.01 KB
description title ms.assetid label template keywords ms.date ms.topic ms.localizationpriority
Set how long a speech recognizer ignores silence or unrecognizable sounds (babble) and continues listening for speech input.
Set speech recognition timeouts
58F446AC-4A56-454D-8125-62A2C4DBFCC8
Speech recognition timeouts
detail.hbs
speech, voice, speech recognition, natural language, dictation, input, user interaction
02/08/2017
article
medium

Set speech recognition timeouts

Set how long a speech recognizer ignores silence or unrecognizable sounds (babble) and continues listening for speech input.

Important APIs: Timeouts, SpeechRecognizerTimeouts

Set a timeout

Here, we specify various Timeouts values:

  • InitialSilenceTimeout - The length of time that a SpeechRecognizer detects silence (before any recognition results have been generated) and assumes speech input is not forthcoming.
  • BabbleTimeout - The length of time that a SpeechRecognizer continues to listen to unrecognizable sounds (babble) before it assumes speech input has ended and finalizes the recognition operation.
  • EndSilenceTimeout - The length of time that a SpeechRecognizer detects silence (after recognition results have been generated) and assumes speech input has ended.

Note  Timeouts can be set on a per-recognizer basis.

 

// Set timeout settings.
recognizer.Timeouts.InitialSilenceTimeout = TimeSpan.FromSeconds(6.0);
recognizer.Timeouts.BabbleTimeout = TimeSpan.FromSeconds(4.0);
recognizer.Timeouts.EndSilenceTimeout = TimeSpan.FromSeconds(1.2);

Related articles

Samples