setAudioVolume
Set audio volume.
Address
/audioMixer/setAudioVolume [type] [volume]
Arguments
| Type | Description | |
|---|---|---|
| argument 1 | String | Audio type |
| argument 2 | Float | The dB value, ranging from -40 to 10 |
Audio Type
Director Plus
| Audio Type | Description |
|---|---|
| 0x0001 | Monitor |
| 0x0003 | Program |
| 0x0700 | HDMI 1 |
| 0x0800 | HDMI 2 |
| 0x0802 | HDMI 3 |
| 0x0803 | HDMI 4 |
| 0x0200 | Mic 1 |
| 0x0202 | Mic 2 |
| 0x0300 | Bluetooth input |
| 0x0600 | BGM |
| 0x0604 | App1 |
| 0x0605 | App2 |
| 0x0606 | App3 |
Director One/Director Mini
| Audio Type | Description |
|---|---|
| 0x0001 | Monitor |
| 0x0003 | Program |
| 0x0700 | HDMI 1 |
| 0x0800 | HDMI 2 |
| 0x0200 | Microphone |
| 0x0300 | Bluetooth input |
| 0x0600 | BGM |
Example
Set the audio volume of Program to -10dB.
/audioMixer/setAudioVolume 3 -10
Note: Floating point numbers will be rounded down.
/audioMixer/setAudioVolume 3.1 -10.99 = /audioMixer/setAudioVolume 3 -10