elevenlabs-hello-world

Featured

Generate your first ElevenLabs text-to-speech audio file. Use when starting a new ElevenLabs integration, testing your setup, or learning basic TTS API patterns. Trigger: "elevenlabs hello world", "elevenlabs example", "elevenlabs quick start", "first elevenlabs TTS", "text to speech demo".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ElevenLabs Hello World ## Overview Generate speech from text using the ElevenLabs TTS API. This skill covers the core `POST /v1/text-to-speech/{voice_id}` endpoint with real voice IDs, model selection, and audio output. ## Prerequisites - Completed `elevenlabs-install-auth` setup - Valid API key in `ELEVENLABS_API_KEY` ## Instructions ### Step 1: Text-to-Speech with the SDK **TypeScript (recommended):** ```typescript import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js"; import { createWriteStream } from "fs"; import { Readable } from "stream"; import { pipeline } from "stream/promises"; const client = new ElevenLabsClient(); async function generateSpeech() { // Use a pre-made voice — "Rachel" is a default voice available on all accounts // Find voice IDs via: GET /v1/voices const audio = await client.textToSpeech.convert("21m00Tcm4TlvDq8ikWAM", { text: "Hello! This is your first ElevenLabs text-to-speech generation.", model_id: "eleven_multilingual_v2", // Best quality, 29 languages voice_settings: { stability: 0.5, // 0-1: lower = more expressive similarity_boost: 0.75, // 0-1: higher = closer to original voice style: 0.0, // 0-1: higher = more dramatic (costs more latency) speed: 1.0, // 0.7-1.2: speech speed multiplier }, }); // audio is a ReadableStream — pipe to file await pipeline( Readable.fromWeb(audio as any), createWriteStream("output.mp3") ); ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category