set-audio-config

Use the interface to modify audio settings.

HTTP Request

GET http://ip/mwapi?method=set-audio-config&param1=value1&param2=value2...

Response Body

{
  "status": 0
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

Example

http://ip/mwapi?method=set-audio-config&gain=-60&sample-rate=44100&channels=2&ch0=4&ch1=5&check-pts=true&convert-mode=ebu
Parameter Description
method set-video-config
gain Adjust the gain from -100.00dB to 20.00dB as needed.
sample-rate Set the sample rate for your work, including 32000, 44100, 48000, 88200, 96000.
channels Choose the proper audio channels for your work, including Follow input, 2 Channels, 4 Channels, 8 Channels. Then you can set the mapping relationship between the output and source channels.
0 indicates to follow input.
When the channels is set to 2, the selected audio channels map for output channel 1/2.
When the channels is set to 4, the selected audio channels map for output channel 1/2 & 3/4.
When the channels is set to 8, the selected audio channels map for output channel 1/2, 3/4, 5/6, 7/8.
ch0 ~ ch15 Map the audio channels between the output and source channels when channels is not 0.
For example, channels=2&ch0=4&ch1=5 indicates 2 channels are selected. Output channel1 maps the source channel5, and output channel2 maps the source channel6.
check-pts True indicates check the audio PTS is enabled, otherwise it is false.
convert-mode Convert mode, including smpte, ebu

results matching ""

    No results matching ""