SpeechContinuousRecognitionSession Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
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.
Auto |
Gets or sets the time threshold at which the continuous recognition session ends due to lack of audio input. |
Cancel |
Asynchronously cancel the continuous speech recognition session and discard all pending recognition results. |
Pause |
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. |
Start |
Overload Asynchronously begin a continuous speech recognition session with a SpeechContinuousRecognitionMode of Default. |
Start |
Overload Asynchronously begin a continuous speech recognition session with the specified SpeechContinuousRecognitionMode behavior. |
Stop |
Asynchronously end a continuous speech recognition session and pass all pending recognition results to the ResultGenerated event. |
Completed |
Occurs when a continuous recognition session ends. |
Result |
Occurs when the speech recognizer returns the result from a continuous recognition session. |
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 |