Speech Provider - v0.1.4
    Preparing search index...

    Class BrowserVoiceProvider

    A voice provider that uses the browser's built-in speech synthesis. This provider is available in all modern browsers and doesn't require any API keys.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = "Browser"

    The name of the voice provider

    Methods

    • Get available voices for a given language code.

      Parameters

      • options: { lang: string; minVoices: number }

        The options for getting voices

        • lang: string

          The language code to match (e.g., "en-US")

        • minVoices: number

          The minimum number of voices to return

      Returns Promise<BrowserSpeechSynthesisVoice[]>

      A promise that resolves to an array of browser voices