Skip to main content
Read through this guide to set up ElevenLabs & get familiar with how it is used in the Voice Studio app.

Set up ElevenLabs

First, create an ElevenLabs account or sign in. Next, navigate to your Profile Settings and find your API key. Make sure to save this somewhere safe and do not share it with anyone. Once you have your API key, paste it in your .env file:
ELEVENLABS_API_TOKEN=your_elevenlabs_token

App Using ElevenLabs

The Voice Studio app at /apps/voice uses the ElevenLabs API to generate high-quality speech from text.

Features

  • Access to 1,000+ voices from the ElevenLabs Voice Library.
  • Works in 26+ languages.
  • Allows adjustment of various settings like stability, similarity, and style to fine-tune your audio output.
  • Uploads generated audio to Cloudflare R2 storage.
  • Stores generation data in the ‘generations’ table in Supabase.
  • Reduces user’s credits (configurable in toolConfig.ts) per generation.
More information on structure of the codebase can be found here:

Structure

Understand the project structure of the codebase