New to Telerik UI for .NET MAUIStart a free 30-day trial

Defines the contract for a speech recognizer component.

Definition

Namespace:Telerik.Maui.SpeechRecognizer

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public interface IRadSpeechRecognizer : IAsyncDisposable

Derived Classes: RadSpeechRecognizer

Inherited Members IAsyncDisposable.DisposeAsync()

Properties

Gets the current state of the speech recognizer.

C#
SpeechRecognizerState State { get; }

Methods

Initializes the speech recognizer with the specified context.

C#
Task Init(SpeechRecognizerInitializationContext context)
Parameters:contextSpeechRecognizerInitializationContext

The initialization context.

Returns:

Task

A task that represents the asynchronous operation.

Resets the speech recognizer to its initial state.

C#
Task Reset()
Returns:

Task

A task that represents the asynchronous operation.

Starts listening for speech input.

C#
Task StartListening()
Returns:

Task

A task that represents the asynchronous operation.

Stops listening for speech input.

C#
Task StopListening()
Returns:

Task

A task that represents the asynchronous operation.

Events

Occurs when an error is encountered by the speech recognizer.

C#
event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred

Occurs when speech is successfully recognized.

C#
event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized

Occurs when the state of the speech recognizer changes.

C#
event EventHandler StateChanged