Class
RadSpeechToTextButton

A button that provides speech-to-text functionality using a speech recognizer.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class RadSpeechToTextButton : RadTemplatedButton, INotifyPropertyChanged

Inheritance: objectRadButtonBaseRadTemplatedButtonRadSpeechToTextButton

Implements: INotifyPropertyChanged

Inherited Members RadTemplatedButton.ContentPropertyRadTemplatedButton.ContentTemplatePropertyRadTemplatedButton.TextColorPropertyRadTemplatedButton.FontFamilyPropertyRadTemplatedButton.FontSizePropertyRadTemplatedButton.FontAttributesPropertyRadTemplatedButton.TextDecorationsPropertyRadTemplatedButton.HorizontalTextAlignmentPropertyRadTemplatedButton.VerticalTextAlignmentPropertyRadTemplatedButton.ActualContentPropertyRadTemplatedButton.ContentRadTemplatedButton.ContentTemplateRadTemplatedButton.TextColorRadTemplatedButton.FontFamilyRadTemplatedButton.FontSizeRadTemplatedButton.FontAttributesRadTemplatedButton.TextDecorationsRadTemplatedButton.HorizontalTextAlignmentRadTemplatedButton.VerticalTextAlignmentRadTemplatedButton.ActualContentRadButtonBase.IsPressedPropertyRadButtonBase.CommandPropertyRadButtonBase.CommandParameterPropertyRadButtonBase.StylePropertyRadButtonBase.ControlTemplatePropertyRadButtonBase.BackgroundColorPropertyRadButtonBase.BackgroundPropertyRadButtonBase.PaddingPropertyRadButtonBase.BorderColorPropertyRadButtonBase.BorderBrushPropertyRadButtonBase.BorderThicknessPropertyRadButtonBase.CornerRadiusPropertyRadButtonBase.OnApplyTemplate()RadButtonBase.OnPropertyChanged(string)RadButtonBase.OnHandlerChanging(HandlerChangingEventArgs)RadButtonBase.OnHandlerChanged()RadButtonBase.IsPressedRadButtonBase.CommandRadButtonBase.CommandParameterRadButtonBase.StyleRadButtonBase.ControlTemplateRadButtonBase.BackgroundColorRadButtonBase.BackgroundRadButtonBase.PaddingRadButtonBase.BorderColorRadButtonBase.BorderBrushRadButtonBase.BorderThicknessRadButtonBase.CornerRadiusRadButtonBase.IsEnabledCoreRadButtonBase.ClickedRadButtonBase.PressedRadButtonBase.Released

Constructors

RadSpeechToTextButton()

Initializes a new instance of the RadSpeechToTextButton class.

Declaration

cs-api-definition
public RadSpeechToTextButton()

Fields

ErrorOccurredCommandProperty

Identifies the ErrorOccurredCommand bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorOccurredCommandProperty

Field Value

BindableProperty

IsContinuousRecognitionProperty

Identifies the IsContinuousRecognition bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty IsContinuousRecognitionProperty

Field Value

BindableProperty

LanguageTagProperty

Identifies the LanguageTag bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty LanguageTagProperty

Field Value

BindableProperty

SpeechRecognizedCommandProperty

Identifies the SpeechRecognizedCommand bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SpeechRecognizedCommandProperty

Field Value

BindableProperty

SpeechRecognizerCreatorProperty

Identifies the SpeechRecognizerCreator bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SpeechRecognizerCreatorProperty

Field Value

BindableProperty

StateProperty

Identifies the State bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty StateProperty

Field Value

BindableProperty

Properties

ErrorOccurredCommand

Gets or sets the command that is executed when an error occurs within the speech recognizer. The parameter of this command is of type SpeechToTextButtonErrorOccurredCommandContext.

Declaration

cs-api-definition
public ICommand ErrorOccurredCommand { get; set; }

Property Value

ICommand

IsContinuousRecognition

Gets or sets 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 bool IsContinuousRecognition { get; set; }

Property Value

bool

LanguageTag

Gets or sets the IETF BCP 47 language tag for the speech recognizer. For example "en-US", "de-DE".

Declaration

cs-api-definition
public string LanguageTag { get; set; }

Property Value

string

SpeechRecognizedCommand

Gets or sets the command that is executed when speech is recognized. The parameter of this command is of type SpeechToTextButtonSpeechRecognizedCommandContext.

Declaration

cs-api-definition
public ICommand SpeechRecognizedCommand { get; set; }

Property Value

ICommand

SpeechRecognizerCreator

Gets or sets the custom factory that creates a IRadSpeechRecognizer instance.

Declaration

cs-api-definition
public Func<IRadSpeechRecognizer> SpeechRecognizerCreator { get; set; }

Property Value

Func<IRadSpeechRecognizer>

State

Gets the current state of the speech recognizer.

Declaration

cs-api-definition
public SpeechRecognizerState State { get; }

Property Value

SpeechRecognizerState

Methods

ChangeVisualState()

Declaration

cs-api-definition
protected override void ChangeVisualState()

Overrides RadButtonBase.ChangeVisualState()

Events

ErrorOccurred

Occurs when an error is encountered by the speech recognizer.

Declaration

cs-api-definition
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred

Event Value

EventHandler<SpeechRecognizerErrorOccurredEventArgs>

SpeechRecognized

Occurs when speech is successfully recognized.

Declaration

cs-api-definition
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized

Event Value

EventHandler<SpeechRecognizerSpeechRecognizedEventArgs>

StateChanged

Occurs when the state of the speech recognizer changes.

Declaration

cs-api-definition
public event EventHandler StateChanged

Event Value

EventHandler