Volume Control
Examples for controlling channel and device volume
Channel Volume Control
Volume control is one of the most common operations. You can control individual channels or multiple channels at once.
Get Channel Volume
Retrieve the current volume setting for a specific channel:
curl -X 'GET' http://${IP}/rest-api/settings/channel/1/dsp/volume{
"value": -10.5
}Set Single Channel Volume
Set the volume for a single channel. Volume range is -72.0 dB to +24.0 dB:
curl -X 'PUT' http://${IP}/rest-api/settings/channel/1/dsp/volume \
-H 'Content-Type: application/json' \
-H 'token: f4005bf8507999192162d989d5a60823' \
-d '{
"value": -10.5
}'{
"value": -10.5
}Set Multiple Channel Volumes
Update volumes for multiple channels in a single request. This is more efficient than individual calls:
curl -X 'PUT' http://${IP}/rest-api/settings/channel/ \
-H 'Content-Type: application/json' \
-H 'token: f4005bf8507999192162d989d5a60823' \
-d '[
{
"channel_id": 1,
"dsp": {
"volume": {
"value": -10.5
}
}
},
{
"channel_id": 2,
"dsp": {
"volume": {
"value": -12.0
}
}
},
{
"channel_id": 3,
"dsp": {
"volume": {
"value": -8.5
}
}
}
]'[
{
"channel_id": 1,
"dsp": {
"volume": {
"value": -10.5
}
}
},
{
"channel_id": 2,
"dsp": {
"volume": {
"value": -12.0
}
}
},
{
"channel_id": 3,
"dsp": {
"volume": {
"value": -8.5
}
}
}
]Get Volume Parameter Range
Check the valid volume range and step size for a channel:
curl -X 'OPTIONS' http://${IP}/rest-api/settings/channel/1/dsp/volume{
"value": [-72.0, 24.0, 0.1, "dB"]
}The response format is [MIN, MAX, STEP, UNIT]:
- MIN: -72.0 dB (minimum volume)
- MAX: 24.0 dB (maximum volume)
- STEP: 0.1 dB (volume adjustment step)
- UNIT: “dB” (decibels)
Device Volume Control
Control the main device volume that affects all channels:
Get Device Volume
curl -X 'GET' http://${IP}/rest-api/settings/device/dsp/volume{
"value": 0.0
}Set Device Volume
curl -X 'PUT' http://${IP}/rest-api/settings/device/dsp/volume \
-H 'Content-Type: application/json' \
-H 'token: f4005bf8507999192162d989d5a60823' \
-d '{
"value": -5.0
}'{
"value": -5.0
}Note: Device volume acts as a master volume control affecting all channels. Individual channel volumes are relative to this device volume setting.