Skip to content

Events and integration

How detections leave the device: ONVIF event topics, recording rules, MQTT and VMS integration.

A detection is useful only once it reaches the system your operators watch. Cochl Acoustic Security raises standard AXIS events, so anything that consumes AXIS or ONVIF events consumes a sound detection, with no Cochl-specific integration.

Event topics

The application declares one topic per tag, plus one that covers every tag:

tnsaxis:CameraApplicationPlatform/cochlsense_official/cochlsense_official<Tag>
Topic suffixTag
SirenSiren
Car_horn_alarmCar horn alarm
Fire_smoke_alarmFire smoke alarm
Tire_squealTire squeal
Glass_breakGlass break
ScreamScream
YellYell
GunshotGunshot
SpeechSpeech
anyAny of the above

In device and VMS menus they appear under Cochl Acoustic Security with names such as cochlsense_official Glass_break. The console lists every topic under Configuration → ONVIF event topics, ready to copy, with Test alarm above it to raise any tag's event on demand.

Configuration: Test alarm with a tag selector and Send test event, then ONVIF event topics, each with a copy button.

A per-tag event carries two fields, the same shape as AXIS Audio Analytics' own classes:

FieldValue
LabelThe tag, for example Glass_break
Detectedtrue while the tag is active, false when it clears

The score and the level are on the any pulse, sent alongside each detection:

FieldValue
LabelAlways any
DetectedAlways true
TagThe tag that was detected, for example Glass_break
ProbabilityThe tag's score, from 0 to 1
AudioLevelAn internal energy value of the window that triggered it. It is not in dB and has no unit: use it only to compare windows on the same device. On a test event it is the noise gate's current value.

Why the score is not on the per-tag topic

A device action rule can only use a stateful event whose state is a single field. Earlier releases put Probability and AudioLevel on the per-tag topics as well, and the device's rule engine could not use those topics at all. If an integration reads the score from a per-tag topic, read it from any instead.

Stateful events and the hold time

The per-tag topics are stateful: a tag becomes active on the first window that detects it and inactive once nothing has detected it for the detection hold time — 5 seconds by default, or 2, 10 or 30 seconds, set under Configuration → Detection hold.

Configuration, Detection hold: 2, 5, 10 or 30 seconds, with how long a detection takes to reach the VMS.

So one incident is one active period, however long the sound lasts, and a sound that stutters — a siren passing behind buildings, repeated shouting — stays one incident as long as the gaps are shorter than the hold. Lengthen the hold if one incident is producing several alarms; shorten it if separate incidents are being merged.

The any topic is different: it is a pulse, sent once for each tag detected in each window. Use it to count or log detections, not to drive a "while active" rule.

Recording on a detection

Use the per-tag topics with a record while the event is active rule, so the recording lasts as long as the incident.

Set a pre-buffer of at least 3 seconds

A detection is reported one to three seconds after the sound begins: the application has to hear a full two-second window before it can decide. A recording that starts at the event misses the start of the incident. Give the rule a pre-buffer of at least 3 seconds.

The recording is where the audio evidence lives — the application itself stores no audio.

Other loud sound, sound level, device rules

Besides the tag topics, there are other-loud-sound and sound level topics — see Other loud sound and sound level. Detections can also drive the device's own action rules without a VMS and be written onto the video — see Device rules and video overlay.

MQTT

AXIS OS can publish device events to an MQTT broker. Configure the broker in the device's MQTT settings and include the application's topics in the event filter; no Cochl-specific setup is needed.

VMS integration

Any VMS that receives ONVIF or AXIS events from the device receives these. Map the topics to alarms or recording rules in the VMS as you would any other device event, then verify the chain with Send test event (Testing).

Step-by-step setup for specific VMS products is available on request from contact@cochl.ai, and is being added to this page.

Privacy

No audio is recorded or streamed off the device by the application. Only event data leaves it, which is often the deciding factor in spaces where recording audio would not be permitted at all.

The console can also draw the model's input spectrogram. A spectrogram is not audio, but speech can be partly reconstructed from one, so it is off by default: the device neither keeps nor serves it until an installer switches Spectrogram on in the console. When on, the device keeps about 90 seconds of it in memory; it is never written to storage. Switching it off discards what was kept.

Last updated

Need help? Contact support@cochl.ai

Mention Cochl Acoustic Security and what you were trying to do.

Powered by Cochl