ElevenLabs Integration
The ElevenLabs integration block enables you to incorporate the ElevenLabs API into your bot, transforming text into lifelike speech for enhanced user interactions. ElevenLabs provides industry-leading AI voice generation with natural-sounding voices.
Integrate the ElevenLabs API in the Indite editor to add dynamic text-to-speech capabilities to your bot!
Key Features
- Lifelike Voice Generation: Convert text to natural-sounding speech using AI
- Multiple Voice Options: Choose from a variety of voices or clone custom voices
- Dynamic Content: Generate speech from variables and personalized content
- Model Selection: Pick from different ElevenLabs models for quality vs. speed
- Audio Playback: Generated audio integrates seamlessly with Audio Bubble blocks
Configuration Options
| Option | Description |
|---|---|
| API Key | Your ElevenLabs API key for authentication |
| Voice | Select from available ElevenLabs voices |
| Model | Choose the AI model (e.g., Eleven Multilingual, Eleven Turbo) |
| Text | The text to convert, can include variables |
| Save URL to Variable | Store the generated audio URL for use with Audio Bubble |
Convert Text to Speech
The "Convert Text to Speech" action transforms text into speech using ElevenLabs voices and models, generating a temporary audio file link. This link can be used in an Audio Bubble to play the audio in your bot.
Setup Steps
- Add the ElevenLabs block to your flow
- Configure your API key in the credentials section
- Select a voice that matches your bot's personality
- Enter the text or variable to convert
- Store the resulting audio URL in a variable
- Add an Audio Bubble block using the stored URL
Audio file links are temporary. Use the Audio Bubble immediately after generation for best results.
Example Usage
Personalized Welcome Message
Create a spoken greeting with the user's name:
- Collect the user's name in an input block
- Use ElevenLabs to convert
"Hello {{Name}}, welcome to our service!" - Play the personalized audio greeting
Accessibility Enhancement
Make your bot more accessible:
- Convert important text responses to speech
- Allow users to listen to information instead of reading
- Provide audio summaries of complex content
Interactive Storytelling
Build engaging narrative experiences:
- Generate character dialogue with different voices
- Create dynamic story narration based on user choices
- Add atmospheric audio responses
Best Practices
- Keep Text Concise: Shorter text generates faster and uses fewer API credits
- Test Voice Selection: Preview different voices to find the best match for your use case
- Use Variables Wisely: Ensure dynamic content makes grammatical sense when spoken
- Consider Load Times: Audio generation takes time; use the Wait block if needed
- Monitor API Usage: Track your ElevenLabs API usage to manage costs
- Have Fallbacks: Consider text alternatives if audio generation fails
- Match Voice to Brand: Choose a voice that aligns with your brand personality