Read through this guide to set up ElevenLabs & get familiar with how it is used in the text-to-speech demo 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=dummy_elevenlabs_token

Demo app

The Text-to-Speech app uses the ElevenLabs API to generate high-quality speech from text. You can find more information about it below:

Features

  • Supports 45 voices by default, with access to 1,000+ additional 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.