Aracılığıyla paylaş


SpeechRecognizerTimeouts Class

Definition

The timespan that a speech recognizer ignores silence or unrecognizable sounds (babble) and continues listening for speech input.

public ref class SpeechRecognizerTimeouts sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SpeechRecognizerTimeouts final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SpeechRecognizerTimeouts
Public NotInheritable Class SpeechRecognizerTimeouts
Inheritance
Object Platform::Object IInspectable SpeechRecognizerTimeouts
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

An app retrieves this object through the SpeechRecognizer.Timeouts property.

The recognizer finalizes each operation when the specified time span elapses.

InitialSilenceTimeout and EndSilenceTimeout both relate to silence, but have different uses. While EndSilenceTimeout applies if speech input has already occurred, InitialSilenceTimeout applies if no speech input is received at all.

Properties

BabbleTimeout

Gets and sets the length of time that a SpeechRecognizer continues to listen while receiving unrecognizable sounds (babble) before it assumes speech input has ended and finalizes the recognition operation.

EndSilenceTimeout

Gets and sets the length of time, after recognition results have been generated, that a SpeechRecognizer detects silence and assumes speech input has ended.

InitialSilenceTimeout

Gets and sets the length of time, before any recognition results have been generated, that a SpeechRecognizer detects silence and assumes speech input has ended.

Applies to

See also