# audio.set

Source: https://docs.lightair.app/developers/remote-api/audio.set

> Sets a mixer track's volume, or mutes and unmutes it.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Audio. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `track` | `string` | yes | The track's id or name, or its source's. |
| `volume_db` | `number` | no | Its fader in dB, −100 to 26. |
| `muted` | `boolean` | no | Muted or not. |

## Errors

Not found (-32004) for an unknown track, or a source with no sound.

## Events

- `audio.volume`
- `audio.mute`

## From an AI agent

The MCP server's `set_audio` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "audio.set", "params": { "track": "Mic", "muted": true } }
```

Result:

```json
{}
```

## Related

- [audio.update](https://docs.lightair.app/developers/remote-api/audio.update.md)
- [audio.levels](https://docs.lightair.app/developers/remote-api/audio.levels.md)
- [panic.mute_all](https://docs.lightair.app/developers/remote-api/panic.mute_all.md)
