InterfaceIRadSpeechRecognizer
Defines the contract for a speech recognizer component.
Definition
Namespace:Telerik.Maui.SpeechRecognizer
Assembly:Telerik.Maui.Core.dll
Syntax:
public interface IRadSpeechRecognizer : IAsyncDisposable
Inherited Members
Properties
State
Gets the current state of the speech recognizer.
Declaration
SpeechRecognizerState State { get; }
Property Value
Methods
Init(SpeechRecognizerInitializationContext)
Initializes the speech recognizer with the specified context.
Declaration
Task Init(SpeechRecognizerInitializationContext context)
Parameters
context
SpeechRecognizerInitializationContext
The initialization context.
Returns
A task that represents the asynchronous operation.
Reset()
Resets the speech recognizer to its initial state.
Declaration
Task Reset()
Returns
A task that represents the asynchronous operation.
StartListening()
Starts listening for speech input.
Declaration
Task StartListening()
Returns
A task that represents the asynchronous operation.
StopListening()
Stops listening for speech input.
Declaration
Task StopListening()
Returns
A task that represents the asynchronous operation.
Events
ErrorOccurred
Occurs when an error is encountered by the speech recognizer.
Declaration
event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred
Event Value
SpeechRecognized
Occurs when speech is successfully recognized.
Declaration
event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Event Value
StateChanged
Occurs when the state of the speech recognizer changes.