SpeechRecognitionEngine.EndSilenceTimeout Property

Definition

Gets or sets the interval of silence that the SpeechRecognitionEngine will accept at the end of unambiguous input before finalizing a recognition operation.

C#
public TimeSpan EndSilenceTimeout { get; set; }

Property Value

The duration of the interval of silence.

Exceptions

This property is set to less than 0 seconds or greater than 10 seconds.

Remarks

The speech recognizer uses this timeout interval when the recognition input is unambiguous. For example, for a speech recognition grammar that supports recognition of either "new game please" or "new game", "new game please" is an unambiguous input, and "new game" is an ambiguous input.

This property determines how long the speech recognition engine will wait for additional input before finalizing a recognition operation. The timeout interval can be from 0 seconds to 10 seconds, inclusive. The default is 150 milliseconds.

To set the timeout interval for ambiguous input, use the EndSilenceTimeoutAmbiguous property.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

See also