AMX MET-ECOM-D User Manual

Page of 88
Programming
54
 Metreau Entry Communicators
RTP, RTCP Video and Audio Streaming Commands (Cont.)
SET AUDIO
Sets the current configuration of 
the audio system. 
Configuration includes codec, sam-
pling rate, and bit rate. 
Sample rate is at 8khz.
Syntax:
SEND_COMMAND <DEV>,"'SET AUDIO <Codec>'"
Variable:
• Codec = OFF, G.711ALAW, G.711ULAW
Example:
SEND_COMMAND MET1,"'SET AUDIO G.711'"
Sets the audio configuration to G.711 sampling at 8khz.
Note: Do not change the Audio or Video Codec settings during a call.
GET GAIN
Retrieves the current gain setting 
on the microphone input. 
Syntax:
SEND_COMMAND <DEV>,"'GET GAIN'"
Example:
SEND_COMMAND MET1,"'GET GAIN'"
Returns:
GAIN = 127
SET GAIN
Sets the gain on the microphone 
input. 
Syntax:
SEND_COMMAND <DEV>,"'SET GAIN <Value>’"
Variable:
• Value = 0 to 255
Example:
SEND_COMMAND MET1,'"SET GAIN 0'"
Mutes the microphone.
GET VOLUME
Retrieves the current volume set-
ting on the speaker output. 
Syntax:
SEND_COMMAND <DEV>,"'GET VOLUME'"
Example:
SEND_COMMAND MET1,"'GET VOLUME'"
Returns:
VOLUME = 127
SET VOLUME
Sets the volume on the speaker 
output. 
Syntax:
SEND_COMMAND <DEV>,"'SET VOLUME <Value>’"
Variable:
• Value = 0 to 255
Example:
SEND_COMMAND MET1,"'SET VOLUME 0'"
Mutes the speaker.