How we created a soundboard using ElevenLabs SFX API

Learn how ElevenLabs created SB1, an infinite soundboard powered by their text-to-sound effects AI audio model, allowing users to generate any sound on demand.

SB1

Imagine a soundboard that can generate unlimited sounds on demand. That’s exactly what we built at ElevenLabs — meet SB1, our infinite soundboard. On the surface, it looks like a typical grid of pads you trigger with clicks or keyboard shortcuts. Under the hood, it’s powered by our text-to-sound effects AI audio model. 

To use it you simply describe any sound you can think of, and SB1 will generate it. There are also some predefined default sounds, but even they can be replaced.

From idea to prototype

विचार से प्रोटोटाइप तकsoft ambient forest sounds” or “dramatic audience gasp,” and get a ready-to-use sound effect?

हमने एक सरल सवाल से शुरुआत की: क्या होगा अगर आप एक विवरण टाइप कर सकें, जैसे “

SB1 Prototype

Before jumping in to the code we turned to Lovable to create a basic prototype version of what would become SB1. Not connected to the API yet, it gave us a chance to experiment with design choices and button placements, before our brilliant team created the final UI and code.

कोड में कूदने से पहले हमने

1POST https://api.elevenlabs.io/v1/sound-generation

You send a JSON payload with your prompt, the number of variations you want (we default to four), and your API key in the Authorization header.

आप अपने प्रॉम्प्ट के साथ एक JSON पेलोड भेजते हैं, जितनी विविधताएँ आप चाहते हैं (हम चार पर डिफ़ॉल्ट करते हैं), और आपके API कुंजी को ऑथराइजेशन हेडर में।

Key API details

  • Headers:
    • Authorization: Bearer YOUR_API_KEY
    • Content-Type: application/json
  • Body parameters:
    • prompt (string): description of the sound
    • n (integer): number of variations (1–10)
    • format (string, optional): wav or mp3 (defaults to wav)

A sample request looks like this:

1{
2 "prompt": "rain hitting the roof of a tent",
3 "n": 4,
4 "format": "wav"
5}
6

And you’ll receive back an array of four URLs. We designed the API so that it scales to any use case — from ad hoc soundboard creation to bulk generation for game assets.

और आपको चार URLs की एक श्रृंखला वापस मिलेगी। हमने API को इस तरह डिज़ाइन किया है कि यह किसी भी उपयोग के मामले में स्केल कर सके — आकस्मिक साउंडबोर्ड निर्माण से लेकर गेम एसेट्स के लिए बल्क जनरेशन तक।

SB1 इंटरफ़ेस का निर्माण

  1. Preset: loads from a saved set of sound URLs
  2. Custom: user-generated via the SFX API

When you click an empty pad in custom mode, a prompt dialog appears. You type your description, hit Generate, and the API returns four options. You audition them inline, pick your favorite, and the pad updates immediately. Keyboard bindings let you trigger pads with key presses, so you can play rhythms or sound cues live.

जब आप कस्टम मोड में एक खाली पैड पर क्लिक करते हैं, तो एक प्रॉम्प्ट डायलॉग दिखाई देता है। आप अपना विवरण टाइप करते हैं,

हमने लूपिंग नियंत्रण भी जोड़े। बस लूप बटन दबाएं, उस ध्वनि को टैप करें जिसे आप लूप करना चाहते हैं और यह तब तक बजती रहेगी जब तक आप इसे रिलीज़ नहीं करते। यह SB1 को केवल मजाक के लिए ही नहीं बल्कि ड्रम मशीन और परिवेशी वातावरण के लिए भी उपयोगी बनाता है — पॉडकास्टिंग, लाइवस्ट्रीम साउंड क्यूज़, और गाइडेड मेडिटेशन के लिए भी।

उदाहरण में क्रियान्वयन

  • Light rain: "light rain dripping on leaves"
 / 
  • Heavy rain: "heavy rain falling on a tin roof"
 / 
  • Ocean waves: soft waves rolling onto a shore
 / 

We generated each by sending prompts like “light rain dripping on leaves” and “soft waves rolling onto a shore.” Then we set those pads to loop, creating a backdrop for focus or meditation.

हमने प्रत्येक को उत्पन्न किया जैसे प्रॉम्प्ट भेजकर “पत्तियों पर टपकती हल्की बारिश” और “किनारे पर लुढ़कती मुलायम लहरें।” फिर हमने उन पैड्स को लूप पर सेट किया, ध्यान या फोकस के लिए एक पृष्ठभूमि बनाने के लिए।

  • 808 kick: "super bassy 808 kick"
 / 
  • Snare hit: "tight snare snap"
 / 
  • Open cymbal: "open cymbal ringing out"
 / 

You don’t need audio samples from a drum library. Just describe “super bassy 808 kick” or “tight snare snap,” and the API gives you four versions to audition. We mapped them to the A, S, and D keys for a live performance demo.

आपको ड्रम लाइब्रेरी से ऑडियो सैंपल की आवश्यकता नहीं है। बस “सुपर बेस्सी 808 किक” या “टाइट स्नेर स्नैप” का वर्णन करें, और API आपको ऑडिशन के लिए चार संस्करण देता है। हमने उन्हें लाइव प्रदर्शन डेमो के लिए A, S, और D कीज़ पर मैप किया।

  • Hyped up DJ: Hyped up DJ saying "Lets get the party started"
 / 
  • Orc on a mission: Orc in a gruff voice saying: "This room is over capacity"
 / 
  • Siren song: Haunting female vocal singing: "Time to go home to bed, party is over"
 / 

Custom presets

कस्टम प्रीसेट्सShare to copy a link or post directly to social media. Anyone with the link loads your SB1 configuration and can play your curated sounds.

आप अपने खुद के प्रीसेट्स को सहेज और नाम दे सकते हैं—जैसे, “लाइवस्ट्रीम FX” जिसमें आह, हंसी, और तालियाँ हों। अपना बोर्ड बनाने के बाद,

  • Stateless generation: Each API call is independent. You don’t need to manage a training pipeline or store large sample libraries—just cache the URLs you use in your UI.
  • Low latency: Typical generation time is under two seconds, which feels instant when you’re demoing the feature.
  • Scalable: You can batch-generate hundreds of sounds in parallel, then store them in your own CDN for high-traffic use.
  • Flexible formats: WAV for highest fidelity, MP3 if you need smaller files.

To get started yourself, लो लेटेंसी. You’ll find code samples in JavaScript, Python, and cURL that show how to integrate the SFX API into your projects.

खुद शुरू करने के लिए,

आगे क्या?

SB1 हमारे साउंड-इफेक्ट मॉडल का सिर्फ एक डेमो है। हम OBS और डिजिटल ऑडियो वर्कस्टेशंस के लिए प्लगइन्स की खोज कर रहे हैं, ताकि आप अपने स्ट्रीमिंग या प्रोडक्शन सॉफ़्टवेयर को छोड़े बिना नई ध्वनियाँ उत्पन्न कर सकें। हम मॉडल को संगीत-संबंधी प्रॉम्प्ट्स पर प्रदर्शन सुधारने के लिए भी फाइन-ट्यून कर रहे हैं — जैसे विदेशी पर्कशन या सिंथ टेक्सचर्स।

Give it a try for free today — no MP3 library required.

और जानें

Impact
A man in a wheelchair performing on stage at the Improv comedy theater, decorated for Christmas with a Christmas tree.

Help someone speak again

Impact Voice Lab connects people who’ve lost their voice with volunteers who clean and prepare audio recordings to help restore it

ElevenLabs

उच्चतम गुणवत्ता वाले AI ऑडियो के साथ बनाएं

मुफ़्त में आज़माएं

क्या आपके पास पहले से अकाउंट है? लॉग इन करें