ClassRadSpeechToTextButton
A button control that provides speech-to-text functionality using a speech recognizer.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadSpeechToTextButton : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadSpeechToTextButton
Implements:
Inherited Members
Constructors
RadSpeechToTextButton()
Initializes a new instance of the RadSpeechToTextButton class.
Declaration
public RadSpeechToTextButton()
Properties
AllowAnimation
Gets or sets a value indicating whether to use pulse animation when the state is Listening.
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
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".
SpeechButtonElement
Gets the instance of RadSpeechToTextButtonElement wrapped by this control.
Declaration
[Browsable(false)]
public RadSpeechToTextButtonElement SpeechButtonElement { get; }
Property Value
SpeechRecognizerCreator
Gets or sets the custom factory that creates a IRadSpeechRecognizer instance.
Declaration
[Browsable(false)]
public Func<IRadSpeechRecognizer> SpeechRecognizerCreator { get; set; }
Property Value
State
Gets the current state of the speech recognizer.
Declaration
[Browsable(false)]
public SpeechRecognizerState State { get; }
Property Value
ToolTipStates
Gets or sets the recognizer states in which the tooltip callout is enabled.
Declaration
[Browsable(false)]
public IList<SpeechRecognizerState> ToolTipStates { get; set; }
Property Value
IList<SpeechRecognizerState>
Methods
CreateButtonElement()
Creates the button element for this control.
Declaration
protected virtual RadSpeechToTextButtonElement CreateButtonElement()
Returns
A new instance of RadSpeechToTextButtonElement.
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
Overrides
StopListening()
Stops the speech to text button from listening.
If the speech recognizer is currently in the StartingListening or Listening state, this method will stop the recognition process. If the recognizer is not listening, this method has no effect.
Events
CalloutOpening
Occurs before the callout tooltip is opened, allowing customization or cancellation.
Declaration
public event EventHandler<SpeechToTextTooltipOpeningEventArgs> CalloutOpening
Event Value
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.