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
Name | Type |
---|---|
settings | Omit <BaseUrlPartsApiConfigurationOptions , "baseUrl" > & { baseUrl? : string | Partial <UrlParts > } & { apiKey? : string } |
Returns
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
Name | Type |
---|---|
settings | ElevenLabsSpeechModelSettings |
Returns
A new instance of ElevenLabsSpeechModel.
See
- https://docs.elevenlabs.io/api-reference/text-to-speech
- https://docs.elevenlabs.io/api-reference/text-to-speech-websockets
Defined in
packages/modelfusion/src/model-provider/elevenlabs/ElevenLabsFacade.ts:30