Class SpeechRecognizerInitializationContext
Provides initialization context for the speech recognizer, including language and recognition mode.
Inheritance
Namespace: Telerik.Maui.SpeechRecognizer
Assembly: Telerik.Maui.Core.dll
Syntax
public sealed class SpeechRecognizerInitializationContext : ValueType
Constructors
SpeechRecognizerInitializationContext(String, Boolean)
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
System.String
languageTag
The IETF BCP 47 languag tag to be used for speech recognition. For example "en-US", "de-DE". |
System.Boolean
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.
Declaration
public readonly bool IsContinuousRecognition
Field Value
System.Boolean
|
LanguageTag
Gets the IETF BCP 47 language tag to be used for speech recognition. For example "en-US", "de-DE".
Declaration
public readonly string LanguageTag
Field Value
System.String
|