menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SpeechRecognitionErrorEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SpeechRecognitionErrorEventArgs

    Event arguments for the SfSpeechToText component when an error occurs during speech recognition.

    Inheritance
    System.Object
    SpeechRecognitionErrorEventArgs
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SpeechRecognitionErrorEventArgs : Object

    Constructors

    SpeechRecognitionErrorEventArgs()

    Declaration
    public SpeechRecognitionErrorEventArgs()

    Properties

    Error

    Gets the error type that occurred during speech recognition.

    Declaration
    public string Error { get; set; }
    Property Value
    Type Description
    System.String

    A System.String representing the type of error encountered during speech recognition. Possible values include:

    • not-allowed - Microphone access denied. Allow microphone permissions.
    • audio-capture - No microphone detected. Ensure your microphone is connected.
    • network - Network error occurred. Check your internet connection.
    • no-speech - No speech detected. Please speak into the microphone.
    • aborted - Speech recognition was aborted.
    • service-not-allowed - Speech recognition service is not allowed in this context.
    • unsupported-browser - The browser does not support the SpeechRecognition API.
    • unknown - An unknown error occurred.
    The default value is System.String.Empty.
    Remarks

    This property helps identify specific errors during speech recognition, allowing for appropriate error handling and user feedback.

    ErrorMessage

    Gets a human-readable error message providing additional details about the error.

    Declaration
    public string ErrorMessage { get; set; }
    Property Value
    Type Description
    System.String

    A System.String containing a descriptive error message. The default value is System.String.Empty.

    Remarks

    This property provides more context about the error, offering additional details beyond the Error property. It can be useful for debugging or displaying error messages to users.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved