Interface
IRadSpeechRecognizer

Defines the contract for a speech recognizer component.

Definition

Namespace:Telerik.Maui.SpeechRecognizer

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public interface IRadSpeechRecognizer : IAsyncDisposable

Inherited Members IAsyncDisposable.DisposeAsync()

Properties

State

Gets the current state of the speech recognizer.

Declaration

cs-api-definition
SpeechRecognizerState State { get; }

Property Value

SpeechRecognizerState

Methods

Init(SpeechRecognizerInitializationContext)

Initializes the speech recognizer with the specified context.

Declaration

cs-api-definition
Task Init(SpeechRecognizerInitializationContext context)

Parameters

context

SpeechRecognizerInitializationContext

The initialization context.

Returns

Task

A task that represents the asynchronous operation.

Reset()

Resets the speech recognizer to its initial state.

Declaration

cs-api-definition
Task Reset()

Returns

Task

A task that represents the asynchronous operation.

StartListening()

Starts listening for speech input.

Declaration

cs-api-definition
Task StartListening()

Returns

Task

A task that represents the asynchronous operation.

StopListening()

Stops listening for speech input.

Declaration

cs-api-definition
Task StopListening()

Returns

Task

A task that represents the asynchronous operation.

Events

ErrorOccurred

Occurs when an error is encountered by the speech recognizer.

Declaration

cs-api-definition
event EventHandler<SpeechRecognizerErrorOccurredEventArgs> ErrorOccurred

Event Value

EventHandler<SpeechRecognizerErrorOccurredEventArgs>

SpeechRecognized

Occurs when speech is successfully recognized.

Declaration

cs-api-definition
event EventHandler<SpeechRecognizerSpeechRecognizedEventArgs> SpeechRecognized

Event Value

EventHandler<SpeechRecognizerSpeechRecognizedEventArgs>

StateChanged

Occurs when the state of the speech recognizer changes.

Declaration

cs-api-definition
event EventHandler StateChanged

Event Value

EventHandler