How to Detect Audio Parameters (Sample Rate, Format, Channels) for Two-Way Audio?
AnsweredHello, I am following the instructions to enable two-way audio communication with the camera: https://support.networkoptix.com/hc/en-us/articles/4410048890135-How-to-Use-2-Way-Audio
Basic format for a request from browser to camera:
ws://<server_ip>:<server_port>/api/http_audio?camera_Id=<id>&format=<audio_sample_format>&sample_rate=<audio_sample_rate>&channels=<audio_channels_count>
I am trying to determine how to retrieve the supported audio parameters (audio sample rate, audio sample format, and audio channels count) from the camera.
Is there a specific method or API available to fetch the audio sample rate, audio format, and channel count supported by different cameras?
-
Hi Nguyen Chi Thien,
Most Audio settings are made in the device itself, like the codec, sample rate, and sample format.
To fetch the applicable data, you can use a
GET rest/v3/devices/request for all devices, orGET /rest/v3/devices/{id}for a specific device.The output will look like this: LINK to PrivateBin
Here you'll find parameters like:
"isAudioEnabled": true, "audioCodec": "PCM", "twoWayAudioEnabled": true,These can be adjust from
truetofalseor v.v.
TheaudioCodecis just informational, and cannot be changed through the Mediaserver API, and has to be changed on the device itself.With kind regards.
0
Please sign in to leave a comment.
Comments
1 comment