# Add sound effects, music or a voice to your app

> Ask your Agents for sound effects, background music or spoken lines, listen to them in the chat, and have them put into your app.

Source: https://air.build/docs/build/add-sound-and-music/

Your Agents can make three kinds of sound for your app: sound effects from a description, music from a short brief, and spoken lines in a voice you choose. You ask in the project's chat and listen right there, then the Agents put the sounds in your app. They make them with [audiogen](https://air.build/docs/cli/audiogen/), the same way in a cloud Team and in a Team that runs on your Mac.

| Kind | Ask like this | Worth saying |
| --- | --- | --- |
| Sound effect | "A soft click for the buttons" | How long it is, whether it echoes, whether it should loop |
| Music | "Calm background music for the menu" | The mood, the tempo, how long, with or without singing, whether it should loop |
| Voice | "A friendly voice saying 'Welcome back'" | The exact words, the kind of voice, the language |

## Ask for sounds

1. Open the project's chat.
2. Say which sounds you need and when each one plays. If you need a set, such as every sound in a game, ask for them all in one message.
3. Ask the Agent to send them in the chat so you can listen before they go into the app.

For example:

```text
Make the sounds for the game: a short coin pickup, a jump, a soft "game over" tone, and a cheerful chiptune loop for the main menu, no vocals. Send them here before you add them.
```

For a voice, ask for a few to choose from:

```text
Suggest three voices for the welcome line "Welcome back, let's cook something good" and send a sample of each.
```

If the app speaks another language, say which one.

## Listen in the chat

A sound arrives in the chat as a bar with its length, or as a file with a waveform icon. Tap it to play it right there, and tap again to pause.

- Only one sound plays at a time. Starting another one stops the first.
- When a sound has finished, the next tap plays it from the start.
- On iPhone, sounds in the chat play even when the phone is set to silent.

The Agent may ask you to choose with a question card. An option can carry its sound: tap its play button to hear it. Playing a sound doesn't pick the option. Tap the option itself to choose. See [Work with your Agents in chat](https://air.build/docs/projects/work-with-agents-in-chat/#answer-an-agents-question).

To keep a sound, touch and hold it (on the Mac, right-click it) and choose **Save As…**. For the other choices, see [Send photos, files and sketches to an Agent](https://air.build/docs/projects/send-photos-and-files/#open-files-in-the-chat).

## Ask for changes

Answer in plain words and say which sound you mean: "the jump is too long", "less echo on the click", "make the music loop without a gap", "a slower voice", "try another voice". The new version arrives as a new message. The earlier ones stay in the chat.

## Hear them in your app

A sound in the chat isn't part of your app yet. Tell the Agent when each one plays:

```text
Add the sounds: the coin plays when a coin is collected, the jump on every jump, and the music loops on the main menu.
```

Once the app is built again, open Preview and use the app. Preview plays your app's sound, and musical notes float around the device while it plays. If you hear nothing:

- In the device's **Sound** menu, check that **Device Sound** is on. On iPhone and iPad, the **Mute** tool under the device turns the same sound off and on.
- In the same menu, **Volume Up** presses the device's volume button.
- Check your own device's volume.

See [Run your app in Preview](https://air.build/docs/build/preview-your-app/#use-the-device) and [Type, rotate and add devices in Preview](https://air.build/docs/build/use-preview-tools/#choose-the-tools-under-the-device-iphone-and-ipad).

Making a game? See [Make a game](https://air.build/docs/build/make-a-game/).

## Questions

**Can I use my own recording or music?**

Yes. Attach the file with **+** and say where it plays. See [Send photos, files and sketches to an Agent](https://air.build/docs/projects/send-photos-and-files/).

**Why does one sound show as a bar and another as a file?**

AirBuild shows a bar when it knows the sound's length. Either way, tap it to play it in the chat.

**Nothing plays when I tap a sound**

The sound is downloaded first, then plays. If it couldn't load, the play button comes back: tap it again to try once more. Check that your device's volume is up.

**Does making sounds count toward my plan?**

Yes. Generated audio counts toward your plan's AI usage. If your Agents use your own key or subscription, their chat doesn't count, but the audio still does. See [Understand your usage](https://air.build/docs/team/understand-usage/#what-counts-toward-your-plan).

**The Agent says it can't make sounds right now**

Your plan's AI usage may be used up; if so, a card above the message box says so. See [Understand your usage](https://air.build/docs/team/understand-usage/#when-usage-runs-low).
