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

Provides speech recognition functionality for .NET MAUI applications using the platform SpeechRecognizer APIs.

Definition

Namespace:Telerik.Maui.SpeechRecognizer

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public sealed class RadSpeechRecognizer : IRadSpeechRecognizer, IAsyncDisposable

Inheritance: objectRadSpeechRecognizer

Implements: IAsyncDisposableIRadSpeechRecognizer

Constructors

Initializes a new instance of the RadSpeechRecognizer class.

C#
public RadSpeechRecognizer()

Properties

Gets the current state of the speech recognizer.

C#
public SpeechRecognizerState State { get; }

Implements: IRadSpeechRecognizer.State

Methods

C#
public ValueTask DisposeAsync()
Returns:

ValueTask

Implements: IAsyncDisposable.DisposeAsync()

Initializes the speech recognizer with the specified context.

C#
public Task Init(SpeechRecognizerInitializationContext context)
Parameters:contextSpeechRecognizerInitializationContext

The initialization context.

Returns:

Task

A task that represents the asynchronous operation.

Implements: IRadSpeechRecognizer.Init(SpeechRecognizerInitializationContext)

Resets the speech recognizer to its initial state.

C#
public Task Reset()
Returns:

Task

A task that represents the asynchronous operation.

Implements: IRadSpeechRecognizer.Reset()

Starts listening for speech input.

C#
public Task StartListening()
Returns:

Task

A task that represents the asynchronous operation.

Implements: IRadSpeechRecognizer.StartListening()

Stops listening for speech input.

C#
public Task StopListening()
Returns:

Task

A task that represents the asynchronous operation.

Implements: IRadSpeechRecognizer.StopListening()

Events

Occurs when an error is encountered by the speech recognizer.

C#
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred

Implements: IRadSpeechRecognizer.ErrorOccurred

Occurs when speech is successfully recognized.

C#
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized

Implements: IRadSpeechRecognizer.SpeechRecognized

Occurs when the state of the speech recognizer changes.

C#
public event EventHandler StateChanged

Implements: IRadSpeechRecognizer.StateChanged