audio.set
Sets a mixer track's volume, or mutes and unmutes it.
JSON-RPC 2.0project.write
Parameters
- trackstringrequiredThe track's id or name, or its source's.
- volume_dbnumberIts fader in dB, −100 to 26.
- mutedbooleanMuted or not.
Errors
Not found (-32004) for an unknown track, or a source with no sound.
Events
Subscribers to events get audio.volume, audio.mute.
From an AI agent
The MCP server's set_audio reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "audio.set", "params": { "track": "Mic", "muted": true }}lightair call audio.set '{"track":"Mic","muted":true}'const result = lightair.call("audio.set", {"track":"Mic","muted":true});Result
{}