Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SpeechRecognitionEngine.EndSilenceTimeoutAmbiguous Property

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

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public Property EndSilenceTimeoutAmbiguous As TimeSpan
    Get
    Set
'Usage
Dim instance As SpeechRecognitionEngine
Dim value As TimeSpan

value = instance.EndSilenceTimeoutAmbiguous

instance.EndSilenceTimeoutAmbiguous = value
public TimeSpan EndSilenceTimeoutAmbiguous { get; set; }

Property Value

Type: System.TimeSpan
The duration of the interval of silence.

Exceptions

Exception Condition
ArgumentOutOfRangeException

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 ambiguous. 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 500 milliseconds.

To set the timeout interval for unambiguous input, use the EndSilenceTimeout property.

See Also

Reference

SpeechRecognitionEngine Class

SpeechRecognitionEngine Members

Microsoft.Speech.Recognition Namespace

BabbleTimeout

EndSilenceTimeout

InitialSilenceTimeout

Recognize

EmulateRecognize

RecognizeAsync

EmulateRecognizeAsync