elevenlabs
library and an API key which can be obtained from Eleven Labs
ELEVEN_LABS_API_KEY
environment variable.
Parameter | Type | Default | Description |
---|---|---|---|
api_key | str | None | The Eleven Labs API key for authentication |
voice_id | str | JBFqnCBsd6RMkjVDRZzb | The voice ID to use for the audio generation |
target_directory | Optional[str] | None | The directory to save the audio file |
model_id | str | eleven_multilingual_v2 | The model’s id to use for the audio generation |
output_format | str | mp3_44100_64 | The output format to use for the audio generation (check out the docs for more information) |
Function | Description |
---|---|
text_to_speech | Convert text to speech |
generate_sound_effect | Generate sound effect audio from a text prompt. |
get_voices | Get the list of voices available |