ElevenLabs Integration
Convert speech to text and generate natural-sounding speech with ElevenLabs' advanced AI voice models.
Timbal provides seamless integration with ElevenLabs' powerful AI voice and speech services.
This integration allows you to:
- Convert speech to text using ElevenLabs' advanced transcription models
- Generate natural-sounding speech from text using various voices and models
Prerequisites
Before using the ElevenLabs integration, you'll need:
- An ElevenLabs account - Sign up here
- An API key - Get your API key here
- Set up your environment variable:
Installation
No additional installation is required.
Import the specific functions you need:
- Sign up for a ElevenLabs account here, and obtain an API key.
- Store your obtained API key in an environment variable named
ELEVENLABS_API_KEY
to facilitate its use by the tools.
Speech to Text (STT)
Description
The Speech to Text (STT) service converts audio files into text using ElevenLabs' advanced transcription models.
Example
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
audio_file | File | Audio file to transcribe. Must be a valid audio file (content type starting with "audio/") | Yes |
model_id | str | Transcription model to use. Available models: - scribe_v1 : Standard transcription model- scribe_v1_experimental : Experimental model with enhanced features | No |
Text to Speech (TTS)
The Text to Speech (TTS) service converts text into natural-sounding speech using ElevenLabs' voice models.
Example
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
text | str | Text to convert to speech | Yes |
voice_id | str | ID of the voice to use | No |
model_id | str | TTS model to use. Available models: - eleven_flash_v2_5 : Fast and efficient model- eleven_multilingual_v2 : Model with multilingual support | No |