Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The VNS object corresponds to the Voice notification serviceNotification Service system object.

Operator format to describe actions with the sensor is:

Code Block
DoReact("VNS","_id_","_command_" [,"_parametrs_"]);

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

Command

command description

Parameters

Description

"SETUP"

settings of the voice notification service

.

card<>

Name of sound device.

Note. Card name

is to be

must correspond to the name

which is specified 

specified in the settings of the sound card of

the Voice notification service.

the Voice Notification Service

level<>

Level of signal.

Value

The value of the parameter

is

varies from 0 to 15.

On

By default, it is 8

.

channel<>

Set of sound channels.

Available

Possible values of the parameter: 0

no sound channel; 1

left playback channel; 2

right playback channel; 3

left and right playback channels (both channels)

.

flags<>

Flags

Flag

ip<>

IP

-

address of network device

.

name<>

Object name

.

pass<>

Password

.

user<>

User name.

Username

"PLAY"

play audio file

.

file<>

Full path

and

to the audio file in .wav format (indicating the name of

sound

the file being played. For example: C:\Program Files (x86)\Intellect\Wav\cam_alarm_1.wav).

Note. If only file name is specified

then

, the default path to

it

the file will be taken from the InstallPath registry key in

«HKEY

the HKEY_LOCAL_MACHINE\SOFTWARE\

ITV

AxxonSoft\

Intellect»

Intellect section (HKEY_LOCAL_MACHINE \Software\Wow6432Node\

ITV

AxxonSoft\Intellect for 64-bits system), in value of the

«InstallPath»

InstallPath parameter. In this parameter, it is possible to play several audio files using the

«

"+

» operation.

Commandcommand description

Parameters

Description

" operation

"
ARM" – arm sensor.

-

-

"DISARM" – disarm sensor.

-

-

“CONFIRM” – confirm alarm.

-

-

“SETUP” – settings for sensor.

chan<>

Output number (0 – 15).

flags<>

Flags.

name<>

Object name.

type<>

Type of sensor object (0 – on closing, 1 – on opening).

 

STOP"stop playing audio file--

Properties of the VNS object are shown in the table

...

:

Properties of the VNS object

Description of properties

ID<>

Object ID

.

PARENT_ID<>

Parent object ID

.

 

Examples of using events and reactions of the Voice notification service object:

  1. It is required to play audio file when video camera starts record.

    Code Block
    OnEvent("CAM",N,"REC")
    {
        DoReact("VNS","1","PLAY","file<C:\Program Files\ Intellect\Wav\cam_alarm_"+N+".wav>");
    }
  2. Set less level of the volume regulator in the event of the earlier specified time zone and set the average level of the volume regulator after this time zone.

    Code Block
    OnEvent("TIME_ZONE","1","ACTIVATE")
    {
        DoReact("VNS","1","SETUP","level<2>");
    }
    OnEvent("TIME_ZONE","1","DEACTIVATE")
    {
        DoReact("VNS","1","SETUP","level<8>");
    }

...

titleNote.

...