Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The OLXA_LINE object corresponds to the Microphone system object.

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:

OnEvent("OLXA_LINE ", "_id_","_event_")

Event

Description

"ACCU_START"

Sound activated recording ON.

"ACCU_STOP"

Sound activated recording OFF.

"ARM"

Record ON.

"DISARM"

Record OFF.

"INCOMING_NUMBER"

Incoming telephone number.

"OUTGOING_NUMBER"

Outgoing telephone number.

"REC"

Start of record.

"REC_STOP"

End of record.

"RESET"

Microphone connecting.

Operator format to describe actions with the microphone is:

DoReact("OLXA_LINE ","_id_","_command_" [,"_parameters_"]);

List of commands and parameters for the OLXA_LINE object is presented in the following table:

Commandcommand description

Parameters

Description

"ARM" – turn on the microphone to record.

-

-

"DISARM" – turn off the record from microphone.

-

-

"SETUP" – setting of microphone parameters.

type<>

Type of line.

accu_start <>

Operating threshold of sound detection.

accu_stop<>

Holding time of detection triggering.

amp<>

Gain.

aru<>

Automatic gain 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 record.

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:

CheckState("OLXA_LINE","number","state")

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 record.

 

Examples of using events and reactions of the Microphone object:

  1. Turn on the first microphone when the sound activated recording is enabled.

    OnEvent("OLXA_LINE","1","accu_start") //enable sound activated recording
    {
        DoReact("OLXA_LINE","1","ARM"); //disable record from microphone
    }
  2. Set minimal compression on microphone while disabling record of audio signal.

    OnEvent("OLXA_LINE","1","DISARM") // disable record from microphone
    {
        DoReact("OLXA_LINE","1","SETUP","compression<5>"); //minimal compression is set up
    }
  • No labels