ClassRadSpeechToTextButton
A button that provides speech-to-text functionality using a speech recognizer.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadSpeechToTextButton : RadTemplatedButton, INotifyPropertyChanged
Inheritance: objectRadButtonBaseRadTemplatedButtonRadSpeechToTextButton
Implements:
Inherited Members
Constructors
RadSpeechToTextButton()
Initializes a new instance of the RadSpeechToTextButton class.
Declaration
public RadSpeechToTextButton()
Fields
ErrorOccurredCommandProperty
Identifies the ErrorOccurredCommand bindable property.
Declaration
public static readonly BindableProperty ErrorOccurredCommandProperty
Field Value
BindableProperty
IsContinuousRecognitionProperty
Identifies the IsContinuousRecognition bindable property.
Declaration
public static readonly BindableProperty IsContinuousRecognitionProperty
Field Value
BindableProperty
LanguageTagProperty
Identifies the LanguageTag bindable property.
Declaration
public static readonly BindableProperty LanguageTagProperty
Field Value
BindableProperty
SpeechRecognizedCommandProperty
Identifies the SpeechRecognizedCommand bindable property.
Declaration
public static readonly BindableProperty SpeechRecognizedCommandProperty
Field Value
BindableProperty
SpeechRecognizerCreatorProperty
Identifies the SpeechRecognizerCreator bindable property.
Declaration
public static readonly BindableProperty SpeechRecognizerCreatorProperty
Field Value
BindableProperty
StateProperty
Identifies the State bindable property.
Declaration
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
public ICommand ErrorOccurredCommand { get; set; }
Property Value
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.
LanguageTag
Gets or sets the IETF BCP 47 language tag for the speech recognizer. For example "en-US", "de-DE".
SpeechRecognizedCommand
Gets or sets the command that is executed when speech is recognized. The parameter of this command is of type SpeechToTextButtonSpeechRecognizedCommandContext.
Declaration
public ICommand SpeechRecognizedCommand { get; set; }
Property Value
SpeechRecognizerCreator
Gets or sets the custom factory that creates a IRadSpeechRecognizer instance.
Declaration
public Func<IRadSpeechRecognizer> SpeechRecognizerCreator { get; set; }
Property Value
State
Gets the current state of the speech recognizer.
Declaration
public SpeechRecognizerState State { get; }
Property Value
Methods
ChangeVisualState()
Declaration
protected override void ChangeVisualState()
Overrides
Events
ErrorOccurred
Occurs when an error is encountered by the speech recognizer.
Declaration
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred
Event Value
SpeechRecognized
Occurs when speech is successfully recognized.
Declaration
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Event Value
StateChanged
Occurs when the state of the speech recognizer changes.