Sound Effects

작성자: ElevenLabs

텍스트 설명을 사용하여 ElevenLabs로 음향 효과를 생성합니다. 음향 효과 제작, 오디오 텍스처 생성, 앰비언트 사운드, 시네마틱 임팩트, UI 사운드 또는 음성이 아닌 모든 오디오를 만들 때 사용하세요. 루핑, 길이 제어, 프롬프트 영향 조정을 지원합니다.

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의 다른 스킬

Setup API Key
ElevenLabs
사용자가 ElevenLabs MCP 도구와 함께 사용할 ElevenLabs API 키를 설정하는 과정을 안내합니다. 사용자가 ElevenLabs API 키를 구성해야 할 때, API 키 누락으로 ElevenLabs 도구가 실패할 때, 또는 사용자가 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