# Testing (https://docs.cochl.ai/docs/acoustic-security/axis/testing)



A test should answer two separate questions, and it is worth keeping them apart:

1. **Does the event reach my system?** The event path — rule, VMS, alarm.
2. **Does the device detect the sound where it is installed?** Microphone, position, room.

## Test the event path with a test event [#test-the-event-path-with-a-test-event]

In the operator console, open **Test alarm**, choose a tag and select **Send test event**. The
device raises that tag's event the way a real detection does, including the `any` pulse and the
detection hold, with no sound involved.

<Callout type="warn" title="A test event ignores the tag's mode">
  A test event is sent even when the tag is **Off** or outside its schedule. A rule can pass this
  test on a tag that will never raise a real event, so check the tag's mode as well.
</Callout>

Only the sound tags can be test-fired. **Other loud sound** and the sound level topics cannot; check
those rules with a real sound (see
[Other loud sound and sound level](https://docs.cochl.ai/docs/acoustic-security/axis/loud-sound-and-sound-level)).

Confirm the rule fires and the alarm appears where your operators will see it. This is the right
way to commission a VMS rule — it is repeatable, and it does not depend on producing a sound.

## Test detection with real sound where you can [#test-detection-with-real-sound-where-you-can]

Recognition is trained on real sounds arriving through the air. A test that reproduces those conditions
is the only one that tells you how the system will behave in service.

Sounds that are practical to produce for real — an alarm's own test button, a car horn, a shout —
are the best test of an installation.

## Do not test through a loudspeaker [#do-not-test-through-a-loudspeaker]

<Callout type="warn">
  Playing a recording through a loudspeaker — including a phone or laptop — changes the sound
  enough to change the result. It is worst for short, sharp sounds such as gunshots and breaking
  glass, whose onset is exactly what a speaker cannot reproduce.
</Callout>

A gunshot played from a speaker is not expected to be detected, even on a correctly working
installation. That is a property of the speaker, not evidence about the system. Tonal, sustained
sounds such as sirens and alarms are affected least. **Tire squeal** cannot be validated this way
either: in our fleet tests, recordings the model scores well were often missed when played through a
speaker, so judge it only with a real vehicle.

## When you cannot produce the real sound [#when-you-cannot-produce-the-real-sound]

Verify the event path with **Send test event** (above), and confirm the installation with a sound
you *can* produce for real, however mundane — an alarm's own test button, a shout. That checks the
microphone, the mounting position and the room, which are what most often limit real performance.

Reference examples for each sound category are in the
[Cochl sound library](https://labs.cochl.ai/sound-library).

## Reading the result [#reading-the-result]

While testing, keep the console's [sound tape](https://docs.cochl.ai/docs/acoustic-security/axis/operator-console#sound-tape) open. For a
sound that was not detected it tells you which of three things happened:

| On the tape                               | Meaning                        | Next step                                                                                                                                            |
| ----------------------------------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| The sound is shaded under the gate        | It was not analyzed            | Lower the [noise gate](https://docs.cochl.ai/docs/acoustic-security/axis/tuning#noise-gate) if it is above Sensitive (the default); otherwise bring the test sound closer |
| Analyzed, the tag's score stays low       | The model did not recognize it | Check the test sound itself, and the [installation](https://docs.cochl.ai/docs/acoustic-security/axis/installation-guide)                                                 |
| The score crosses the threshold, no alarm | The event path                 | Test with **Send test event**                                                                                                                        |
