Class RadSpeechToTextButton
A button that provides speech-to-text functionality using a speech recognizer.
Inherited Members
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public class RadSpeechToTextButton : RadTemplatedButton, ITextContentButton, IContentButton, INotifyPropertyChanged
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
Microsoft.Maui.Controls.BindableProperty
|
IsContinuousRecognitionProperty
Identifies the IsContinuousRecognition bindable property.
Declaration
public static readonly BindableProperty IsContinuousRecognitionProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
LanguageTagProperty
Identifies the LanguageTag bindable property.
Declaration
public static readonly BindableProperty LanguageTagProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SpeechRecognizedCommandProperty
Identifies the SpeechRecognizedCommand bindable property.
Declaration
public static readonly BindableProperty SpeechRecognizedCommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SpeechRecognizerCreatorProperty
Identifies the SpeechRecognizerCreator bindable property.
Declaration
public static readonly BindableProperty SpeechRecognizerCreatorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
StateProperty
Identifies the State bindable property.
Declaration
public static readonly BindableProperty StateProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
Properties
ErrorOccurredCommand
Gets or sets the command that is executed when an error occurs within the speech recognizer.
Declaration
public ICommand ErrorOccurredCommand { get; set; }
Property Value
System.Windows.Input.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
public bool IsContinuousRecognition { get; set; }
Property Value
System.Boolean
|
LanguageTag
Gets or sets the IETF BCP 47 language tag for the speech recognizer. For example "en-US", "de-DE".
Declaration
public string LanguageTag { get; set; }
Property Value
System.String
|
SpeechRecognizedCommand
Gets or sets the command that is executed when speech is recognized.
Declaration
public ICommand SpeechRecognizedCommand { get; set; }
Property Value
System.Windows.Input.ICommand
|
SpeechRecognizerCreator
Gets or sets the custom factory that creates a IRadSpeechRecognizer instance.
Declaration
public Func<IRadSpeechRecognizer> SpeechRecognizerCreator { get; set; }
Property Value
System.Func<IRadSpeechRecognizer>
|
State
Gets the current state of the speech recognizer.
Declaration
public SpeechRecognizerState State { get; }
Property Value
SpeechRecognizerState
|
Methods
ChangeVisualState()
Events
ErrorOccurred
Occurs when an error is encountered by the speech recognizer.
Declaration
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred
Event Type
System.EventHandler<SpeechRecognizerErrorOccurredEventArgs>
|
SpeechRecognized
Occurs when speech is successfully recognized.
Declaration
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Event Type
System.EventHandler<SpeechRecognizerSpeechRecognizedEventArgs>
|
StateChanged
Occurs when the state of the speech recognizer changes.
Declaration
public event EventHandler StateChanged
Event Type
System.EventHandler
|