# widgets.sound

Source: https://docs.lightair.app/developers/remote-api/widgets.sound

> Plays a sound file through the alert box on air.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `file` | `string` | no | The sound file's path. |
| `volume` | `number` | no | Its volume. Default 100. |

## Errors

A state error (-32005) when there's no alert box on air. Fails (-32000) when widgets aren't available.

## From an AI agent

The MCP server's `widgets (action: sound)` reaches this method.

## Related

- [soundboard.play](https://docs.lightair.app/developers/remote-api/soundboard.play.md)
- [widgets.test](https://docs.lightair.app/developers/remote-api/widgets.test.md)
