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

    Function createElevenLabsVoiceProvider

    • Create a new Eleven Labs voice provider.

      Parameters

      • apiKey: string

        Your Eleven Labs API key

      • baseUrl: string = ELEVEN_LABS_BASE_URL

        The base URL for the Eleven Labs API (defaults to the official API)

      • options: {
            cacheMaxAge?: null | number;
            normalizeVolume?: boolean;
            printVoiceProperties?: boolean;
            validateResponses?: boolean;
        } = {}

        Additional options for the provider

        • OptionalcacheMaxAge?: null | number

          Maximum age of cached responses in seconds (default: 1 hour). Set to null to disable caching.

        • OptionalnormalizeVolume?: boolean

          Whether to automatically normalize audio volume during playback (default: false)

        • OptionalprintVoiceProperties?: boolean

          Whether to print voice properties for debugging

        • OptionalvalidateResponses?: boolean

          Whether to validate API responses against the schema

      Returns VoiceProvider