AUDIO_IN_FORMAT

 

Description

Get or set the audio format in audio in device.

This command sets the audio coding format in audio in device. The encoders and cameras encoded the audio data from their MIC or Line In port based on this format setting.
When the audio format was changed, all live streaming connections will be terminated by firmware.

For audio out function, the firmware could detect the audio format form the audio message header sent by remote host to play it. Therefore, the firmware could play PCM, G.711 a-law or G.711 u-law no matter what the audio in format is.

Input Argument

format
where it could be
PCM: 16 bit sample size at 8KHz sample rate. (This is the default setting in all encoders and cameras)
G711A: G.711 a-law compressed from PCM data
G.711U: G.711 u-law compressed from PCM data.

Attribute

Return of Message

AUDIO_IN_FORMAT='PCM'

OK: AUDIO_IN_FORMAT='PCM'
or
ERROR: AUDIO_IN_FORMAT='PCM'
or
ERROR: AUDIO_IN_FORMAT not found

Applicability

Platform Devices Supported Firmware Version
PlatformT Camera, Video server A1D-310-V4.11 and later
PlatformK Camera A1D-311-V5.04 and later

Statue

Valid

See also

V2_AUDIO_ENABLED, AUDIO_IN_SENSITIVITY, AUDIO_OUT_VOLUME

Example

http://ip:port/cgi-bin/system?USER=admin&PWD=123456&AUDIO_IN_FORMAT
or
http://ip:port/cgi-bin/cmd/system?AUDIO_IN_FORMAT

http://ip:port/cgi-bin/system?USER=admin&PWD=123456&AUDIO_IN_FORMAT=PCM
or
http://ip:port/cgi-bin/cmd/system?AUDIO_IN_FORMAT=PCM

Back To

HOME, SYSTEM CGI