The Multimedia Menu :: Audio

param.cgi?cmd=getaudioattr

Get the Audio Input/Output Volume

  • enable['in']: Enable audio input [1, 0]
  • volume['in']: Audio input volume: [1 - 100]
  • enable['out']: Enable audio output [1, 0]
  • volume['out']: Audio output volume: [1 - 100]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getaudioattr

cmd="getaudioattr";
enable['in']="1";
volume['in']="60";
enable['out']="1";
volume['out']="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getaudioattr&type=out&user=admin&pwd=instar

cmd="getaudioattr";
enable="1";
volume="60";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setaudioattr&type=in&enable=1&volume=75
cmd="setaudioattr";
response="200";
SET: http://192.168.2.168/param.cgi?cmd=setaudioattr&type=out&enable=1&volume=75&user=admin&pwd=instar
cmd="setaudioattr";
response="200";

param.cgi?cmd=getaudioaction

Set Alarm Audio Signal

  • enable: Enable / Disables alarm tone that gets played through the speaker or line-out [0, 1]
  • interval: Alarm cooldown [5 - 60]
  • duration: Alarm signal duration [0* - 60] (* 0 = sound file will be played completely once)

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getaudioaction

cmd="getaudioaction";
enable="0";
interval="15";
duration="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getaudioaction&user=admin&pwd=instar

cmd="getaudioaction";
enable="0";
interval="15";
duration="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setaudioaction&enable=1

cmd="setalarmrecattr";
response="200";

param.cgi?cmd=getaudiocodecattr

Set Audio Encoder Parameter

  • code: Set audio codecs for audio input and output [alaw, ulaw, pcm, aac]
  • sample_rate: Audio sample rate

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getaudiocodecattr

cmd="getaudiocodecattr";
codec['in']="aac";
sample_rate['in']="16000";
codec['out']="alaw";
sample_rate['out']="16000";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getaudiocodecattr&type=out&user=admin&pwd=instar

cmd="getaudiocodecattr";
codec="alaw";
sample_rate="16000";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setaudiocodecattr&type=out&sample_rate=8000

cmd="setaudiocodecattr";
response="200";