New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Definition

Namespace:Telerik.Maui.SpeechRecognizer

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public struct SpeechRecognizerInitializationContext

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

Constructors

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

C#
public SpeechRecognizerInitializationContext(string languageTag = null, bool isContinuousRecognition = true)
Parameters:languageTagstring

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

isContinuousRecognitionbool

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

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.

C#
public readonly bool IsContinuousRecognition

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

C#
public readonly string LanguageTag