StructSpeechRecognizerInitializationContext
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
SpeechRecognizerInitializationContext(string, bool)
Initializes a new instance of the SpeechRecognizerInitializationContext struct with the specified language identifier and recognition mode.
Declaration
public SpeechRecognizerInitializationContext(string languageTag = null, bool isContinuousRecognition = true)
Parameters
languageTag
The IETF BCP 47 languag tag to be used for speech recognition. For example "en-US", "de-DE".
isContinuousRecognition
Specifies whether speech recognition operates in continuous recognition mode, i.e. the recognizer will continuously listen and recognize speech until stopped. Defaults to true.
Fields
IsContinuousRecognition
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.
LanguageTag
Gets the IETF BCP 47 language tag to be used for speech recognition. For example "en-US", "de-DE".