set-volume
Use this interface to adjust the gain of input signal, headphones, and microphone.
You can obtain the value range of recording parameters using get-info.
"audio-range": {
"hdmi": [], // input gain value
"mic": [], // microphone gain value
"phone": [], // headphones gain value
}
Response Body
GET http://ip/usapi?method=set-volume&is-mic=1&mic-gain=0&is-spi=1&spi-gain=0&is-phone=1&phone-gain=0
| Parameter | Description |
|---|---|
| method | set-volume |
| is-mic | Indicates whether the microphone gain is enabled. 0: mute. 1: enable. |
| mic-gain | Indicates the microphone gain in dB. The default value is 0. |
| is-spi | Indicates whether the input gain is enabled. 0: mute. 1: enable. |
| spi-gain | Indicates the input gain in dB. The default value is 0. |
| is-phone | Indicates whether the headphone gain is enabled. 0: mute. 1: enable. |
| phone-gain | Indicates the headphone 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. |