Interface IRadSpeechRecognizer
Defines the contract for a speech recognizer component.
Namespace: Telerik.Maui.SpeechRecognizer
Assembly: Telerik.Maui.Core.dll
Syntax
public interface IRadSpeechRecognizer : IAsyncDisposable
Properties
State
Gets the current state of the speech recognizer.
Declaration
SpeechRecognizerState State { get; }
Property Value
SpeechRecognizerState
|
Methods
Init(SpeechRecognizerInitializationContext)
Initializes the speech recognizer with the specified context.
Declaration
Task Init(SpeechRecognizerInitializationContext context)
Parameters
SpeechRecognizerInitializationContext
context
The initialization context. |
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
Reset()
Resets the speech recognizer to its initial state.
Declaration
Task Reset()
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
StartListening()
Starts listening for speech input.
Declaration
Task StartListening()
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
StopListening()
Stops listening for speech input.
Declaration
Task StopListening()
Returns
System.Threading.Tasks.Task
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 Type
System.EventHandler<SpeechRecognizerErrorOccurredEventArgs>
|
SpeechRecognized
Occurs when speech is successfully recognized.
Declaration
event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Event Type
System.EventHandler<SpeechRecognizerSpeechRecognizedEventArgs>
|
StateChanged
Occurs when the state of the speech recognizer changes.
Declaration
event EventHandler StateChanged
Event Type
System.EventHandler
|