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
Initializes a new instance of the RadSpeechToTextButton class.
public RadSpeechToTextButton()
Properties
Gets or sets a value indicating whether to use pulse animation when the state is Listening.
public bool AllowAnimation { get; set; }
Gets the default size of the control.
protected override Size DefaultSize { get; }
Overrides:
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.
public bool IsContinuousRecognition { get; set; }
Gets or sets the IETF BCP 47 language tag for the speech recognizer. For example "en-US", "de-DE".
public string LanguageTag { get; set; }
Gets the instance of RadSpeechToTextButtonElement wrapped by this control.
[Browsable(false)]
public RadSpeechToTextButtonElement SpeechButtonElement { get; }
Gets or sets the custom factory that creates a IRadSpeechRecognizer instance.
[Browsable(false)]
public Func<IRadSpeechRecognizer> SpeechRecognizerCreator { get; set; }
Gets the current state of the speech recognizer.
[Browsable(false)]
public SpeechRecognizerState State { get; }
Gets or sets the recognizer states in which the tooltip callout is enabled.
[Browsable(false)]
public IList<SpeechRecognizerState> ToolTipStates { get; set; }
Methods
Creates the button element for this control.
protected virtual RadSpeechToTextButtonElement CreateButtonElement()
A new instance of RadSpeechToTextButtonElement.
protected override void CreateChildItems(RadElement parent)
Overrides:
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
Occurs before the callout tooltip is opened, allowing customization or cancellation.
public event EventHandler<SpeechToTextTooltipOpeningEventArgs> CalloutOpening
Occurs when an error is encountered by the speech recognizer.
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred
Occurs when speech is successfully recognized.
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Occurs when the state of the speech recognizer changes.
public event EventHandler StateChanged