ClassRadSpeechRecognizer
Provides speech recognition functionality for .NET MAUI applications using the platform SpeechRecognizer APIs.
Definition
Namespace:Telerik.Maui.SpeechRecognizer
Assembly:Telerik.Maui.Core.dll
Syntax:
public sealed class RadSpeechRecognizer : IRadSpeechRecognizer, IAsyncDisposable
Inheritance: objectRadSpeechRecognizer
Implements:
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
Implements
Methods
Init(SpeechRecognizerInitializationContext)
Initializes the speech recognizer with the specified context.
Declaration
public Task Init(SpeechRecognizerInitializationContext context)
Parameters
context
SpeechRecognizerInitializationContext
The initialization context.
Returns
A task that represents the asynchronous operation.
Implements
Reset()
Resets the speech recognizer to its initial state.
Declaration
public Task Reset()
Returns
A task that represents the asynchronous operation.
Implements
StartListening()
Starts listening for speech input.
Declaration
public Task StartListening()
Returns
A task that represents the asynchronous operation.
Implements
StopListening()
Stops listening for speech input.
Declaration
public Task StopListening()
Returns
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 Value
Implements
SpeechRecognized
Occurs when speech is successfully recognized.
Declaration
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized
Event Value
Implements
StateChanged
Occurs when the state of the speech recognizer changes.
Declaration
public event EventHandler StateChanged
Event Value
Implements