voice speech⏱10 minutes

Get Started with ElevenLabs

Quick Summary

“Best-in-class AI text-to-speech and voice cloning with lifelike voices.”

Best for: Lifelike voiceover and narration
Time to first integration: 10 minutes

📋Prerequisites

  • ✓Node.js 18+ installed
  • ✓A ElevenLabs account — sign up here
  • ✓An existing project (Next.js, React, or Node.js recommended)

Setup Steps

4 steps
1

Install

Add the ElevenLabs SDK to your project.

bash
npm install elevenlabs
2

Add your API key

Set your ElevenLabs API key as an environment variable.

bash
ELEVENLABS_API_KEY=...
3

Generate speech

Call the text-to-speech endpoint with a voice ID and your text.

typescript
const audio = await client.textToSpeech.convert(voiceId, { text: 'Hello world' })
4

Stream or save

Stream the audio to the client or write it to a file.

Links