> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidjutsu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Audio

> Level clips to a target loudness, and clean up voices with Studio Sound.

## Level clips

`POST /projects/{project}/level` measures what each clip on the audio tracks you name actually plays (EBU R128), then sets each clip's gain so it plays at the `target` loudness. It's applied as one edit, so it makes a new revision like any other.

```sh theme={null}
curl -s -X POST https://api.vidjutsu.ai/projects/launch-film/level \
  -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{"tracks": ["a1"], "target": -16}'
```

```json theme={null}
{"clips": [{"occurrence": "t1-sound", "measured_lufs": -22.4, "gain_db": 6.4, "true_peak": -3.1, "peak_limited": false}, ...],
 "edit": {"project": "launch-film", "branch": "main", "parent": "...", "revision": "...", "target_lufs": -16}}
```

| Field | Default | |
| - | - | - |
| `tracks` | required | Audio track ids to level. |
| `target` | `-16` | Loudness each clip should play at, in LUFS. |
| `max_peak` | `-1` | True-peak ceiling, in dBTP. A clip that would clip is held below it (`peak_limited`). |
| `branch` | `main` | |
| `dry_run` | `false` | Measure and report without editing. |

Leveling sets clip gain. To set the loudness of the finished film, pass `loudness` when you [render](https://docs.vidjutsu.ai/guides/rendering.md#options).

## Clean up voice

[Studio Sound](https://docs.vidjutsu.ai/guides/studio-sound.md) cleans every voice in a project in one step (noise, echo, tone and level) and swaps the cleaned copies onto their clips as one revision. It's billed by box time, about 1.5 cents a voice minute.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.