Skip to main content

Interface: ElevenLabsTextToSpeechProviderConfig

Defined in: packages/agentos/src/io/speech/providers/ElevenLabsTextToSpeechProvider.ts:16

Configuration for the ElevenLabsTextToSpeechProvider.

See​

Properties​

apiKey​

apiKey: string

Defined in: packages/agentos/src/io/speech/providers/ElevenLabsTextToSpeechProvider.ts:21

ElevenLabs API key used for authentication. Sent as the xi-api-key header value (not Bearer-style auth).


baseUrl?​

optional baseUrl: string

Defined in: packages/agentos/src/io/speech/providers/ElevenLabsTextToSpeechProvider.ts:27

Base URL for the ElevenLabs API. Override for proxies or self-hosted instances.

Default​

'https://api.elevenlabs.io/v1'

fetchImpl()?​

optional fetchImpl: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: packages/agentos/src/io/speech/providers/ElevenLabsTextToSpeechProvider.ts:45

Custom fetch implementation for dependency injection in tests.

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | Request | URL

init?​

RequestInit

Returns​

Promise<Response>

Default​

globalThis.fetch

model?​

optional model: string

Defined in: packages/agentos/src/io/speech/providers/ElevenLabsTextToSpeechProvider.ts:39

Default model ID for synthesis.

Default​

'eleven_multilingual_v2'

voiceId?​

optional voiceId: string

Defined in: packages/agentos/src/io/speech/providers/ElevenLabsTextToSpeechProvider.ts:33

Default voice ID. ElevenLabs uses opaque IDs (not human-readable names).

Default​

'EXAVITQu4vr4xnSDxMaL' (the "Sarah" voice)