SpeechContinuousRecognitionSession SpeechContinuousRecognitionSession SpeechContinuousRecognitionSession SpeechContinuousRecognitionSession 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.

public : sealed class SpeechContinuousRecognitionSession
struct winrt::Windows::Media::SpeechRecognition::SpeechContinuousRecognitionSession
public sealed class SpeechContinuousRecognitionSession
Public NotInheritable Class SpeechContinuousRecognitionSession
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 AutoStopSilenceTimeout AutoStopSilenceTimeout AutoStopSilenceTimeout AutoStopSilenceTimeout

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

Methods

CancelAsync() CancelAsync() CancelAsync() CancelAsync() CancelAsync()

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

PauseAsync() PauseAsync() PauseAsync() PauseAsync() PauseAsync()

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

Resume() Resume() Resume() Resume() Resume()

Resumes a continuous speech recognition session, if paused.

StartAsync() StartAsync() StartAsync() StartAsync() StartAsync()

Overload

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

StartAsync(SpeechContinuousRecognitionMode) StartAsync(SpeechContinuousRecognitionMode) StartAsync(SpeechContinuousRecognitionMode) StartAsync(SpeechContinuousRecognitionMode) StartAsync(SpeechContinuousRecognitionMode)

Overload

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

StopAsync() StopAsync() StopAsync() StopAsync() StopAsync()

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

Events

Completed Completed Completed Completed Completed

Occurs when a continuous recognition session ends.

ResultGenerated ResultGenerated ResultGenerated ResultGenerated ResultGenerated

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

See also