Share via


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 ref class SpeechContinuousRecognitionSession sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpeechContinuousRecognitionSession final
[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
Public NotInheritable Class SpeechContinuousRecognitionSession
Inheritance
Object Platform::Object IInspectable 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

See also