Class RadSpeechRecognizer
Provides speech recognition functionality for .NET MAUI applications using the platform SpeechRecognizer APIs.
Inheritance
Namespace: Telerik.Maui.SpeechRecognizer
Assembly: Telerik.Maui.Core.dll
Syntax
public sealed class RadSpeechRecognizer : Object, IRadSpeechRecognizer, IAsyncDisposable
Constructors
RadSpeechRecognizer()
Initializes a new instance of the RadSpeechRecognizer class.
Declaration
public RadSpeechRecognizer()
Properties
State
Gets the current state of the speech recognizer.
Declaration
public SpeechRecognizerState State { get; }
Property Value
SpeechRecognizerState
|
Implements
Methods
DisposeAsync()
Declaration
public ValueTask DisposeAsync()
Returns
System.Threading.Tasks.ValueTask
|
Init(SpeechRecognizerInitializationContext)
Initializes the speech recognizer with the specified context.
Declaration
public Task Init(SpeechRecognizerInitializationContext context)
Parameters
SpeechRecognizerInitializationContext
context
The initialization context. |
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
Implements
Reset()
Resets the speech recognizer to its initial state.
Declaration
public Task Reset()
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
Implements
StartListening()
Starts listening for speech input.
Declaration
public Task StartListening()
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
Implements
StopListening()
Stops listening for speech input.
Declaration
public Task StopListening()
Returns
System.Threading.Tasks.Task
A task that represents the asynchronous operation. |
Implements
Events
ErrorOccurred
Occurs when an error is encountered by the speech recognizer.
Declaration
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred
Event Type
System.EventHandler<SpeechRecognizerErrorOccurredEventArgs>
|
Implements
SpeechRecognized
Occurs when speech is successfully recognized.
Declaration
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Event Type
System.EventHandler<SpeechRecognizerSpeechRecognizedEventArgs>
|
Implements
StateChanged
Occurs when the state of the speech recognizer changes.
Declaration
public event EventHandler StateChanged
Event Type
System.EventHandler
|