voice speechโฑ10 minutes

Get Started with ElevenLabs

Unverified

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

ElevenLabs Guide | AI Navigator | AI Navigator