voice speechโฑ10 minutes
Get Started with ElevenLabs
UnverifiedQuick 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 steps1
1
Install
Add the ElevenLabs SDK to your project.
bash
npm install elevenlabs2
2
Add your API key
Set your ElevenLabs API key as an environment variable.
bash
ELEVENLABS_API_KEY=...3
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
4
Stream or save
Stream the audio to the client or write it to a file.
Links
ElevenLabs WebsiteโAffiliate Link
Documentationโ