SpeechContinuousRecognitionSession Class

Definition

Manages speech input for free-form dictation, or an arbitrary sequence of words or phrases that are defined in a local grammar file constraint.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpeechContinuousRecognitionSession
Inheritance
Object SpeechContinuousRecognitionSession
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.ContinuousRecognitionSession property.

To use web-service constraints, speech input and dictation support must be enabled in Settings by turning on the "Get to know me" option in the Settings -> Privacy -> Speech, inking, and typing page. See "Recognize speech input" in Speech recognition.

Properties

AutoStopSilenceTimeout

Gets or sets the time threshold at which the continuous recognition session ends due to lack of audio input.

Methods

CancelAsync()

Asynchronously cancel the continuous speech recognition session and discard all pending recognition results.

PauseAsync()

Asynchronously pause a continuous speech recognition session to update a local grammar file or list constraint.

Resume()

Resumes a continuous speech recognition session, if paused.

StartAsync()

Overload

Asynchronously begin a continuous speech recognition session with a SpeechContinuousRecognitionMode of Default.

StartAsync(SpeechContinuousRecognitionMode)

Overload

Asynchronously begin a continuous speech recognition session with the specified SpeechContinuousRecognitionMode behavior.

StopAsync()

Asynchronously end a continuous speech recognition session and pass all pending recognition results to the ResultGenerated event.

Events

Completed

Occurs when a continuous recognition session ends.

ResultGenerated

Occurs when the speech recognizer returns the result from a continuous recognition session.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also