Class SpeechRecognitionStartedEventArgs
Event arguments for the SfSpeechToText component when speech recognition starts.
Inheritance
System.Object
SpeechRecognitionStartedEventArgs
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class SpeechRecognitionStartedEventArgs : Object
Constructors
SpeechRecognitionStartedEventArgs()
Declaration
public SpeechRecognitionStartedEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the speech recognition operation was canceled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A System.Boolean indicating whether the recognition was canceled. The default value is false. |
Remarks
This property can be set to true if you need to programmatically cancel the recognition process.
State
Gets the current state of the speech recognition process.
Declaration
public SpeechToTextState State { get; set; }
Property Value
Type | Description |
---|---|
SpeechToTextState | A SpeechToTextState value representing the current state of the recognition process. The default value is Listening. |
Remarks
This property helps track the recognition state transition, such as from inactive to listening.