Struct
SpeechRecognizerInitializationContext

Provides initialization context for the speech recognizer, including language and recognition mode.

Definition

Namespace:Telerik.Maui.SpeechRecognizer

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public struct SpeechRecognizerInitializationContext

Inherited Members ValueType.Equals(object)ValueType.GetHashCode()ValueType.ToString()

Constructors

SpeechRecognizerInitializationContext(string, bool)

Initializes a new instance of the SpeechRecognizerInitializationContext struct with the specified language identifier and recognition mode.

Declaration

cs-api-definition
public SpeechRecognizerInitializationContext(string languageTag = null, bool isContinuousRecognition = true)

Parameters

languageTag

string

The IETF BCP 47 languag tag to be used for speech recognition. For example "en-US", "de-DE".

isContinuousRecognition

bool

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

cs-api-definition
public readonly bool IsContinuousRecognition

Field Value

bool

LanguageTag

Gets the IETF BCP 47 language tag to be used for speech recognition. For example "en-US", "de-DE".

Declaration

cs-api-definition
public readonly string LanguageTag

Field Value

string