Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 2.01 KB

File metadata and controls

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