Sound Effects

द्वारा ElevenLabs

टेक्स्ट विवरण से इलेवनलैब्स का उपयोग करके ध्वनि प्रभाव उत्पन्न करें। ध्वनि प्रभाव बनाते समय, ऑडियो टेक्सचर उत्पन्न करते समय, एम्बिएंट ध्वनियाँ, सिनेमाई इम्पैक्ट, यूआई ध्वनियाँ, या कोई भी ऑडियो जो भाषण नहीं है, उत्पन्न करते समय उपयोग करें। लूपिंग, अवधि नियंत्रण और प्रॉम्प्ट प्रभाव ट्यूनिंग का समर्थन करता है।

npx skills add https://github.com/elevenlabs/skills --skill sound-effects

ElevenLabs Sound Effects

Generate sound effects from text descriptions — supports looping, custom duration, and prompt adherence control.

Setup: See Installation Guide. For JavaScript, use @elevenlabs/* packages only.

Quick Start

Python

from elevenlabs import ElevenLabs

client = ElevenLabs()

audio = client.text_to_sound_effects.convert(
    text="Thunder rumbling in the distance with light rain",
)

with open("thunder.mp3", "wb") as f:
    for chunk in audio:
        f.write(chunk)

JavaScript

import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createWriteStream } from "fs";

const client = new ElevenLabsClient();
const audio = await client.textToSoundEffects.convert({
  text: "Thunder rumbling in the distance with light rain",
});
audio.pipe(createWriteStream("thunder.mp3"));

cURL

curl -X POST "https://api.elevenlabs.io/v1/sound-generation" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" -H "Content-Type: application/json" \
  -d '{"text": "Thunder rumbling in the distance with light rain"}' \
  --output thunder.mp3

Parameters

ParameterTypeDefaultDescription
textstring (required)Description of the desired sound effect
model_idstringeleven_text_to_sound_v2Model to use
duration_secondsnumber | nullnull (auto)Duration 0.5–30s; auto-calculated if null
prompt_influencenumber | null0.3How closely to follow the prompt (0–1)
loopbooleanfalseGenerate a seamlessly looping sound (v2 model only)

Examples with Parameters

# Looping ambient sound, 10 seconds
audio = client.text_to_sound_effects.convert(
    text="Gentle forest ambiance with birds chirping",
    duration_seconds=10.0,
    prompt_influence=0.5,
    loop=True,
)

# Short UI sound, high prompt adherence
audio = client.text_to_sound_effects.convert(
    text="Soft notification chime",
    duration_seconds=1.0,
    prompt_influence=0.8,
)

Output Formats

Pass output_format as a query parameter (cURL) or SDK parameter:

FormatDescription
mp3_44100_128MP3 44.1kHz 128kbps (default)
pcm_44100Raw uncompressed CD quality
opus_48000_128Opus 48kHz 128kbps — efficient compressed
ulaw_8000μ-law 8kHz — telephony

Full list: mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_32000, pcm_44100, pcm_48000, ulaw_8000, alaw_8000, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192.

Prompt Tips

  • Be specific: "Heavy rain on a tin roof" > "Rain"
  • Combine elements: "Footsteps on gravel with distant traffic"
  • Specify style: "Cinematic braam, horror" or "8-bit retro jump sound"
  • Mention mood/context: "Eerie wind howling through an abandoned building"

Error Handling

try:
    audio = client.text_to_sound_effects.convert(text="Explosion")
except Exception as e:
    print(f"API error: {e}")

Common errors:

  • 401: Invalid API key
  • 422: Invalid parameters (check duration range, prompt_influence range)
  • 429: Rate limit exceeded

References

ElevenLabs की और Skills

Setup API Key
ElevenLabs
उपयोगकर्ताओं को ElevenLabs MCP टूल्स के साथ उपयोग के लिए ElevenLabs API कुंजी सेट करने की प्रक्रिया में मार्गदर्शन करता है। इसका उपयोग तब करें जब उपयोगकर्ता को ElevenLabs API कुंजी कॉन्फ़िगर करने की आवश्यकता हो, जब ElevenLabs टूल्स API कुंजी की कमी के कारण विफल हों, या जब उपयोगकर्ता ElevenLabs तक पहुँच की आवश्यकता का उल्लेख करे।
development
Agents
ElevenLabs
ElevenLabs के साथ वॉइस AI एजेंट बनाएं। वॉइस असिस्टेंट, ग्राहक सेवा बॉट, इंटरैक्टिव वॉइस कैरेक्टर या किसी भी रीयल-टाइम वॉइस संवाद अनुभव को बनाते समय उपयोग करें।
developmentofficial
Music
ElevenLabs
ElevenLabs Music API का उपयोग करके संगीत उत्पन्न करें। वाद्य ट्रैक, गीतों के साथ गाने, पृष्ठभूमि संगीत, जिंगल या किसी भी AI-जनित संगीत रचना बनाते समय उपयोग करें। प्रॉम्प्ट-आधारित जनरेशन, सूक्ष्म नियंत्रण के लिए रचना योजनाएँ, और मेटाडेटा के साथ विस्तृत आउटपुट का समर्थन करता है।
developmentofficial
Speech To Text
ElevenLabs
ElevenLabs Scribe v2 का उपयोग करके ऑडियो को टेक्स्ट में लिखें। ऑडियो/वीडियो को टेक्स्ट में बदलने, उपशीर्षक बनाने, मीटिंग्स को लिखने या बोली गई सामग्री को प्रोसेस करने पर उपयोग करें।
developmentofficial
Text To Speech
ElevenLabs
ElevenLabs वॉइस AI का उपयोग करके टेक्स्ट को स्पीच में बदलें। टेक्स्ट से ऑडियो जनरेट करने, वॉइसओवर बनाने, वॉइस ऐप बनाने या 70+ भाषाओं में स्पीच सिंथेसाइज़ करने पर उपयोग करें।
developmentofficial