<!-- https://bobabanana.com/ai-sound-effects-generator/ - AI sound effects generator that turns a text prompt into a 2-20 second clip. Add SFX to your videos in the studio or call POST /v1/sound-effects. -->

# AI sound effects generator: turn text into sound effects

**BobaBanana's AI sound effects generator turns a short text description into a 2 to 20 second sound effect, ambience or foley clip, which you can use on its own or mix under a short video.** It works in the BobaBanana studio and through the API at `POST /v1/sound-effects`.

With text-to-SFX you describe the sound you need, such as "footsteps on gravel, slow walking pace," and get a clip back. Because sound effects live in the same studio as your characters, products and places, you can add them in the same step you create a scene.

BobaBanana is in early access. You can open the studio if you have an account, or request early access.

## Key takeaways

- Describe a sound in plain text and get a **2 to 20 second** clip.
- Good prompts name the **source, the space and the intensity**.
- Add a sound effect to a **video in the same studio job**.
- Developers can call **`POST /v1/sound-effects`**, or pass `sound_effect` to `POST /v1/videos`.
- Sound effects are for **ambience, foley and effects**, not music or speech. Speech comes from voices.

## What can an AI sound effects generator make?

A text-to-sound-effects generator creates non-musical audio from a description. Typical results are room tones and ambience, weather, foley such as footsteps and cloth, machines, impacts and crowds. For spoken lines, BobaBanana uses approved voices instead, and a character can speak a script with lip sync.

## What you get

| Feature | Details |
|---|---|
| Input | A text prompt describing the sound |
| Length | 2 to 20 seconds per sound effect |
| In the studio | Generate a sound effect alongside a picture, voice line and video |
| With video | Mixed under a clip of 2 to 10 seconds, or 3 to 15 seconds at 1080p and 4K (16:9 or 9:16) |
| API endpoint | `POST /v1/sound-effects` (standalone) or `sound_effect` in `POST /v1/videos` |
| Results | Land in History with job progress and an estimated time |

## How to generate sound effects from text

1. **Open the studio** and start a new generation.
2. **Write the sound prompt.** Describe what makes the sound, where it happens and how loud or busy it is.
3. **Pick a length** between 2 and 20 seconds.
4. **Add a video if you want one.** Pick approved assets, write a scene prompt, then add a motion prompt to animate the picture into a clip with the sound mixed in.
5. **Collect the result** from History when the job finishes.

## Sound effect prompt examples by category

Use these as starting points. Change the details to fit your scene.

### Ambience
1. "Forest at dawn, birdsong, light wind in leaves"
2. "Busy cafe ambience, cups clinking, soft chatter"
3. "Quiet office at night, air conditioning hum, distant traffic"

### Weather
4. "Heavy rain on a car roof, distant thunder"
5. "Rain on a tin roof with distant thunder"
6. "Strong wind howling around a wooden cabin"

### Foley
7. "Footsteps on gravel, slow walking pace"
8. "Leather jacket rustling as someone sits down"
9. "Paper pages turning in a quiet library"

### Machines and devices
10. "Old film projector whirring"
11. "Coffee grinder running, then stopping"
12. "Small drone buzzing past the camera"

### Impacts
13. "A wooden door slams shut in a large hall, echo"
14. "Glass bottle set down hard on a wooden table"

### Crowds and people
15. "Stadium crowd cheering after a goal"
16. "Small audience laughing and clapping in a theater"

## How to write a good sound effect prompt

- **Name the source.** "A wooden door," not "a bang."
- **Name the space.** "In a large hall, echo" or "in a small tiled bathroom" changes the sound.
- **Set the intensity.** "Light rain" and "heavy rain" are different sounds.
- **Add a sequence if needed.** "Running, then stopping" tells the generator how the clip unfolds.
- **Keep it to sound.** Leave out visual details that do not affect the audio.

## How to add sound effects to videos

In the studio, the sound effect and the video come out of the same job. Build the picture from your approved characters, products or places, add a motion prompt, and add a sound prompt. The result is a clip of 2 to 10 seconds, or 3 to 15 seconds at 1080p and 4K (16:9 or 9:16), with the sound under it. You can also combine a sound effect with a voice line, so a character speaks with lip sync while rain falls in the background. A motion transfer is the exception: it takes no generated effect and keeps the sound of the clip you upload, when it has any. Read more in our [image to video guide](https://bobabanana.com/articles/image-to-video-ai-guide/).

## Using the sound effects API

Developers and AI agents can call the endpoint directly:

```bash
curl https://bobabanana.com/api/v1/sound-effects \
  -H "Authorization: Bearer $BOBABANANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "busy cafe ambience, cups clinking, soft chatter", "duration_seconds": 12}'
```

The call returns a job. Wait for it with a long-poll (`GET /v1/jobs/{id}?wait=30`) or a signed webhook, then download the audio from the result. To mix a sound into a clip in one call, pass `"sound_effect": {"prompt": "...", "duration_seconds": 8}` in `POST /v1/videos`. Full details are in the [sound effects API docs](https://bobabanana.com/docs/api/sound-effects/) and on the [video generation API](https://bobabanana.com/ai-video-generation-api/) page.

## Use cases for AI sound effects

1. **Social video.** Give short product and character clips a sense of place.
2. **Storyboards and animatics.** Add ambience to frames from the [AI storyboard generator](https://bobabanana.com/ai-storyboard-generator/).
3. **Product ads.** A pour, a click or a zipper under a product shot.
4. **Explainers and presenters.** Room tone under a talking character.
5. **Automated content.** Agents that build a scene, a clip and its sound in one pipeline.

## Frequently asked questions

### How long can an AI sound effect be?
Each sound effect can be 2 to 20 seconds long.

### Can the AI sound effects generator make music or speech?
No. Sound effects are for ambience, foley and effects. For speech, use an approved voice, which can speak a script with lip sync.

### Can I add a sound effect to a video in one step?
Yes. In the studio, add a sound prompt when you create the video. In the API, pass `sound_effect` to `POST /v1/videos`.

### What is the API endpoint for sound effects?
`POST /v1/sound-effects` on `https://bobabanana.com/api/v1`. It returns an async job that you can long-poll or receive by webhook.

### How do I write a better sound effect prompt?
Describe the source, the space and the intensity, for example "a wooden door slams shut in a large hall, echo."

## Get started with BobaBanana

1. [Open the studio](https://bobabanana.com/app/) and sign in.
2. Write a sound prompt and pick a length from 2 to 20 seconds.
3. Add it under a video, or call the [API](https://bobabanana.com/docs/api/sound-effects/).

No account yet? [Request early access](https://bobabanana.com/contact/).
