Skip to main content

Namespace: elevenlabs

Functions

Api

Api(settings): ElevenLabsApiConfiguration

Creates an API configuration for the ElevenLabs API. It calls the API at https://api.elevenlabs.io/v1 and uses the ELEVENLABS_API_KEY env variable by default.

Parameters

NameType
settingsOmit<BaseUrlPartsApiConfigurationOptions, "baseUrl"> & { baseUrl?: string | Partial<UrlParts> } & { apiKey?: string }

Returns

ElevenLabsApiConfiguration

Defined in

packages/modelfusion/src/model-provider/elevenlabs/ElevenLabsFacade.ts:12


SpeechGenerator

SpeechGenerator(settings): ElevenLabsSpeechModel

Synthesize speech using the ElevenLabs Text to Speech API.

Both regular text-to-speech and full duplex text-to-speech streaming are supported.

Parameters

NameType
settingsElevenLabsSpeechModelSettings

Returns

ElevenLabsSpeechModel

A new instance of ElevenLabsSpeechModel.

See

Defined in

packages/modelfusion/src/model-provider/elevenlabs/ElevenLabsFacade.ts:30