set-volume
Use this interface to adjust the gain of input signal, line in, and line out.
You can obtain the range of recording parameters using get-info.
"audio-range": {
    "spi": [],       // range of input audio gain 
    "linein": [],        // range of line in audio gain 
    "lineout": [],      // range of line out audio gain 
  }
Response Body
GET http://ip/usapi?method=set-volume&is-linein=1&linein-gain=0&is-spi=1&spi-gain=0&is-lineout=1&lineout-gain=0
| Parameter | Description | 
|---|---|
| method | set-volume | 
| is-linein | 0: mute the linein gain. 1: enable the line in gain. | 
| linein-gain | Indicates the line in gain in dB. The default value is 0. | 
| is-spi | 0: mute the input gain. 1: enable the input gain. | 
| spi-gain | Indicates the input gain in dB. The default value is 0. | 
| is-lineout | 0: mute the line out gain. 1: enable the line out gain. | 
| lineout-gain | Indicates the line out gain in dB. The default value is 0. | 
Response Body
{
  "result": 0
}
| Item | Description | 
|---|---|
| result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |