Provides initialization context for the speech recognizer, including language and recognition mode.
Definition
Namespace:Telerik.Maui.SpeechRecognizer
Assembly:Telerik.Maui.Core.dll
Syntax:
public struct SpeechRecognizerInitializationContext
Inherited Members
Constructors
Initializes a new instance of the SpeechRecognizerInitializationContext struct with the specified language identifier and recognition mode.
public SpeechRecognizerInitializationContext(string languageTag = null, bool isContinuousRecognition = true)
The IETF BCP 47 languag tag to be used for speech recognition. For example "en-US", "de-DE".
isContinuousRecognitionboolSpecifies whether speech recognition operates in continuous recognition mode, i.e. the recognizer will continuously listen and recognize speech until stopped. Defaults to true.
Fields
Gets a value indicating whether the speech recognizer operates in continuous recognition mode.
When set to true, the recognizer will continuously listen and recognize speech until stopped.
When set to false, recognizer will stop automatically after a single utterance or pause.
public readonly bool IsContinuousRecognition
Gets the IETF BCP 47 language tag to be used for speech recognition. For example "en-US", "de-DE".
public readonly string LanguageTag