Class
RadSpeechRecognizer

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

Definition

Namespace:Telerik.Maui.SpeechRecognizer

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public sealed class RadSpeechRecognizer : IRadSpeechRecognizer, IAsyncDisposable

Inheritance: objectRadSpeechRecognizer

Implements: IAsyncDisposableIRadSpeechRecognizer

Constructors

RadSpeechRecognizer()

Initializes a new instance of the RadSpeechRecognizer class.

Declaration

cs-api-definition
public RadSpeechRecognizer()

Properties

State

Gets the current state of the speech recognizer.

Declaration

cs-api-definition
public SpeechRecognizerState State { get; }

Property Value

SpeechRecognizerState

Implements IRadSpeechRecognizer.State

Methods

DisposeAsync()

Declaration

cs-api-definition
public ValueTask DisposeAsync()

Returns

ValueTask

Implements IAsyncDisposable.DisposeAsync()

Init(SpeechRecognizerInitializationContext)

Initializes the speech recognizer with the specified context.

Declaration

cs-api-definition
public Task Init(SpeechRecognizerInitializationContext context)

Parameters

context

SpeechRecognizerInitializationContext

The initialization context.

Returns

Task

A task that represents the asynchronous operation.

Implements IRadSpeechRecognizer.Init(SpeechRecognizerInitializationContext)

Reset()

Resets the speech recognizer to its initial state.

Declaration

cs-api-definition
public Task Reset()

Returns

Task

A task that represents the asynchronous operation.

Implements IRadSpeechRecognizer.Reset()

StartListening()

Starts listening for speech input.

Declaration

cs-api-definition
public Task StartListening()

Returns

Task

A task that represents the asynchronous operation.

Implements IRadSpeechRecognizer.StartListening()

StopListening()

Stops listening for speech input.

Declaration

cs-api-definition
public Task StopListening()

Returns

Task

A task that represents the asynchronous operation.

Implements IRadSpeechRecognizer.StopListening()

Events

ErrorOccurred

Occurs when an error is encountered by the speech recognizer.

Declaration

cs-api-definition
public event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred

Event Value

EventHandler<SpeechRecognizerErrorOccurredEventArgs>

Implements IRadSpeechRecognizer.ErrorOccurred

SpeechRecognized

Occurs when speech is successfully recognized.

Declaration

cs-api-definition
public event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized

Event Value

EventHandler<SpeechRecognizerSpeechRecognizedEventArgs>

Implements IRadSpeechRecognizer.SpeechRecognized

StateChanged

Occurs when the state of the speech recognizer changes.

Declaration

cs-api-definition
public event EventHandler StateChanged

Event Value

EventHandler

Implements IRadSpeechRecognizer.StateChanged