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

Von der Idee zum Prototypsoft ambient forest sounds” or “dramatic audience gasp,” and get a ready-to-use sound effect?

Wir begannen mit einer einfachen Frage: Was wäre, wenn Sie eine Beschreibung eingeben könnten, wie „

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.

Bevor wir in den Code eintauchten, wandten wir uns an

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.

Sie senden eine JSON-Nutzlast mit Ihrem Prompt, der Anzahl der gewünschten Variationen (standardmäßig vier) und Ihrem API-Schlüssel im Authorization-Header.

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.

Und Sie erhalten ein Array von vier URLs zurück. Wir haben die API so gestaltet, dass sie für jeden Anwendungsfall skaliert — von der ad-hoc Soundboard-Erstellung bis zur Massenproduktion für Spielinhalte.

Erstellung der SB1-Oberfläche

  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.

Wenn Sie in den benutzerdefinierten Modus auf ein leeres Pad klicken, erscheint ein Eingabedialog. Sie geben Ihre Beschreibung ein, drücken

Wir haben auch Looping-Kontrollen hinzugefügt. Drücken Sie einfach die Loop-Taste, tippen Sie auf den Sound, den Sie loopen möchten, und er wird weiter abgespielt, bis Sie ihn loslassen. Das macht SB1 nicht nur für Witze nützlich — denken Sie an Drum Machines und Umgebungsatmosphären — sondern auch für Podcasting, Livestream-Sound-Cues und geführte Meditationen.

Beispiele in Aktion

  • 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.

Wir haben jeden durch das Senden von Prompts wie „leichter Regen, der auf Blätter tropft“ und „sanfte Wellen, die an einen Strand rollen“ erzeugt. Dann haben wir diese Pads auf Loop gesetzt, um einen Hintergrund für Fokus oder Meditation zu schaffen.

  • 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.

Sie benötigen keine Audiosamples aus einer Drum-Bibliothek. Beschreiben Sie einfach „super bassiger 808 Kick“ oder „knackiger Snare-Schlag“, und die API gibt Ihnen vier Versionen zur Auswahl. Wir haben sie den Tasten A, S und D für eine Live-Performance-Demo zugeordnet.

  • 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

Benutzerdefinierte VoreinstellungenShare to copy a link or post directly to social media. Anyone with the link loads your SB1 configuration and can play your curated sounds.

Sie können Ihre eigenen Voreinstellungen speichern und benennen — zum Beispiel „Livestream FX“ mit Gasp, Lachen und Applaus. Nachdem Sie Ihr Board erstellt haben, klicken Sie auf

  • 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, Niedrige Latenz. You’ll find code samples in JavaScript, Python, and cURL that show how to integrate the SFX API into your projects.

Um selbst zu starten,

Was kommt als Nächstes?

SB1 ist nur eine Demo dessen, was unser Soundeffekt-Modell leisten kann. Wir erforschen Plugins für OBS und digitale Audio-Workstations, damit Sie neue Sounds erzeugen können, ohne Ihre Streaming- oder Produktionssoftware zu verlassen. Wir optimieren auch das Modell, um die Leistung bei musikbezogenen Prompts zu verbessern — denken Sie an exotische Percussion oder Synthesizer-Texturen.

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

Mehr entdecken

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-Audioinhalte in höchster Qualität generieren

Kostenlos registrieren

Haben Sie bereits ein Konto? Anmelden