Go to documentation repository
Page History
...
The OLXA_LINE object sends events presented in the table. Procedure is started when the corresponding event appears.
Format of event procedure for the microphone:
Code Block |
---|
OnEvent("OLXA_LINE ", "_id_","_event_") |
occurs.
Event | Description |
ACCU_START |
Sound activated recording |
is on |
ACCU_STOP |
Sound activated recording |
is off |
Record ON.
"DISARM"
Record OFF.
ARM |
Recording is on | |
DISARM | Recording is off |
INCOMING_NUMBER |
Incoming telephone number |
OUTGOING_NUMBER |
Outgoing telephone number |
REC |
Start of |
recording |
REC_STOP |
End of |
recording |
RESET |
Microphone connecting |
Operator format to describe actions with the microphone is:
Code Block |
---|
DoReact("OLXA_LINE ","_id_","_command_" [,"_parameters_"]); |
List of commands and parameters for the the OLXA_LINE object is presented in the following table:
Command |
—command description | Parameters | Description |
"ARM" |
—microphone is recording | - | - |
"DISARM" |
—microphone isn't recording | - | - |
"SETUP" |
—sets microphone parameters |
type<> | Type of line |
accu_start <> |
Sound detection threshold | |
accu_stop<> | Holding time of detection triggering |
amp<> |
Amplification | |
aru<> | Automatic |
amplification control |
aru_dyn<> | Level of AGC |
aru_time<> | AGC attack time |
chan<> | Number of microphone sound channel |
compression<> | Type of compression |
flags<> | Flags |
name<> | Object name |
rec<> | Start of |
recording |
Properties of the OLXA_LINE object are given in the table.
Properties of the OLXA_LINE object | Description of properties |
ID<> | Object ID |
PARENT_ID<> | Parent object ID |
Check function of the OLXA_LINE object state:
Code Block |
---|
CheckState("OLXA_LINE","number","state") |
The The OLXA_LINE object can be in the following states:
State of the OLXA_LINE object | State description |
"BLUE" | Microphone disarmed |
"GREEN" | No signal from microphone |
"YELLOW" | Microphone armed |
"RED" | Start of |
Examples of using events and reactions of the Microphone object:
...
recording |
...
Code Block |
---|
OnEvent("OLXA_LINE","1","accu_start") //enable sound activated recording
{
DoReact("OLXA_LINE","1","ARM"); //disable record from microphone
} |
Set minimal compression on microphone while disabling record of audio signal.
...