Prompt-driven ElevenLabs examples for text-to-speech, speech-to-text, music, sound effects, and agents. Each project includes:
PROMPT.md— instructions for agent-driven generationsetup.sh— scaffolds theexample/directory from a shared templateexample/— the generated, runnable example with its ownREADME.md
Shared base templates live in templates/ (Next.js, Python, TypeScript). UI styling rules are in DESIGN.md.
The legacy
examples/folder is being deprecated and can be ignored for new work.
- Text-to-Speech Quickstart (TypeScript) — Generate an MP3 from text with the ElevenLabs JS SDK.
- Text-to-Speech Quickstart (Python) — Generate an MP3 from text with the ElevenLabs Python SDK.
- Text to Speech Playground (Next.js) — Generate speech from text in a Next.js app and play it back in the browser.
- Speech-to-Text Quickstart (TypeScript) — Transcribe local audio files with Scribe v2.
- Speech-to-Text Quickstart (Python) — Transcribe local audio files with Scribe v2.
- Music Quickstart (TypeScript) — Generate an MP3 track from a text prompt with the ElevenLabs JS SDK.
- Music Quickstart (Python) — Generate an MP3 track from a text prompt with the ElevenLabs Python SDK.
- Music Playground (Next.js) — Enter a prompt, generate a music track, and play it back in the browser.
- Sound Effects Quickstart (TypeScript) — Generate a sound effect MP3 from a text prompt with the ElevenLabs JS SDK.
- Sound Effects Quickstart (Python) — Generate a sound effect MP3 from a text prompt with the ElevenLabs Python SDK.
- Sound Effects Playground (Next.js) — Enter a prompt, generate a sound effect, and play it back in the browser.
- Real-Time Speech-to-Text (Next.js) — Live microphone transcription with VAD in a Next.js app.
- Real-Time Voice Agent (Next.js) — Live voice conversations with the ElevenLabs Agents Platform using the React Agents SDK.
- Voice Agent Guardrails Demo (Next.js) — Demonstrate custom guardrails and the
guardrail_triggeredclient event in a live voice agent. - Voice Isolator (Next.js) — Record your voice in the browser and remove background noise with the Voice Isolator API.
- Dubbing Recorder (Next.js) — Record your voice in the browser, dub it into another language, and play or download the result.
The general prompt-runner workflow is in scripts/generate-examples.sh and is exposed as:
pnpm run generatepnpmcursorCLI
Install root dependencies first:
pnpm installRun all example prompts:
pnpm run generateRun only one example:
pnpm run generate speech-to-text/nextjs/realtimeOptional flags:
pnpm run generate -t 1200 # timeout per prompt in seconds (default: 600)
pnpm run generate -m "claude-4-sonnet" # model selection (default: Cursor auto-select)
pnpm run generate -v # verbose output
pnpm run generate -m "claude-4-sonnet" -t 1200 -vEach example has an example/ folder with a README containing setup and run instructions. See the links in Current examples above.
We welcome contributions from the community. Install the pre-commit hook before submitting:
pip install pre-commit
pre-commit installThis project is licensed under the MIT License. See LICENSE for details.
