Solution overview
About the application
AXIS Audio Analytics detects sudden increases in sound volume and specific types of sounds such as screams or shouts within range of the device it’s installed on. These detections can be configured to trigger a response, such as recording video, playing an audio message, or alerting security staff.
Considerations
Consider the following when setting up a device that will use AXIS Audio Analytics:
The application is optimized to detect sounds up to a distance of 10 meters from the device it’s installed on.
A high level of background noise in busy environments and heavy traffic can impact performance.
Avoid placing the microphone next to a source of direct noise, such as a fan.
For product-specific considerations, see the user manual for your product at help.axis.com.
Get started
Set up the application
Log in to the device interface as an administrator and go to Analytics > Audio analytics.
Turn on Adaptive audio detection if you want the device to monitor the sound level in its immediate vicinity and detect sudden increases in sound volume.
In Adaptive audio detection > Advanced settings, you can move the Threshold slider to raise or lower the detection threshold. Only sounds that pass the threshold trigger a detection.
In Adaptive audio detection > Test alarms, click Test to trigger a detection. Use this to check whether you have set up your rules for events correctly.
- Note
The Threshold slider allows you to adjust how significant an increase in sound volume is required to trigger a detection. Adjust the slider according to where the device is installed and what the device is intended to detect.
Turn on Audio classification if you want to detect specific types of sounds, such as screams or shouts, in the device’s immediate vicinity.
In Audio classification > Advanced settings, choose what types of sounds you want the device to detect.
In Audio classification > Test alarms, select an option from the drop-down list and click Test to trigger a detection. Use this to check whether you have set up your rules for events correctly.
- Note
Adaptive audio detection and Audio classification work independently of each other. If you only need one of the two features, you can leave the other turned off.
Configure the application
Set up rules for events
To learn more, check out our guide Get started with rules for events.
Record video when a sound triggers a detection
This example explains how to set up the Axis device to record video to an SD card as soon as a sound triggers a detection.
In the device’s web interface, go to Analytics > Audio analytics and make sure that Adaptive audio detection is on.
To check that the SD card is mounted, go to System > Storage.
Go to System > Events and add a rule.
Enter a name for the rule.
In the list of conditions, under Audio analytics, select Audio level above threshold.
In the list of actions, under Recordings, select Record video.
In the list of storage options, select SD-DISK.
Select a Camera and a Stream profile.
If you want to start the recording before the sound was detected, enter a Prebuffer time.
Click Save.
To test the rule, go to Analytics > Audio analytics. In Adaptive audio detection > Advanced settings, click Test alarms to generate a false detection event.
Activate a strobe siren when a sound triggers a detection
You can use an Axis strobe siren to let intruders know that the area is under surveillance.
This example explains how to activate a profile in the strobe siren whenever AXIS Audio Analytics detects a sudden increase in sound volume.
Before you start:
Create a new user with the role Operator or Administrator in the strobe siren.
Create a profile in the strobe siren called: “Strobe siren profile”.
In the device’s web interface, go to Analytics > Audio analytics and make sure that Adaptive audio detection is on.
Create a recipient in the camera:
In the camera’s device interface, go to System > Events > Recipients and add a recipient.
Enter the following information:
Name: Strobe siren
Type: HTTP
URL: http://<IPaddress>/axis-cgi/siren_and_light.cgi
Replace <IPaddress> with the address of the strobe siren.
The Account name and password of the newly created strobe siren user.
Click Test to make sure all data is valid.
Click Save.
Create two rules in the camera:
Go to Rules and add a rule to activate the strobe siren once AXIS Audio Analytics makes a detection.
Enter the following information:
Name: Activate strobe siren on detection
Condition: Audio analytics > Audio level above threshold
Action: Notifications > Send notification through HTTP
Recipient: Strobe siren.
The information must be the same as you previously entered under Events > Recipients > Name.
Method: Post
Body:
{ "apiVersion": "1.0", "method": "start", "params": { "profile" : "Strobe siren profile" } }
- Make sure to enter the same information under ‘"profile" : <>’ as you did when you created the profile in the strobe siren, in this case: “Strobe siren profile”.
Click Save.
Add another rule to deactivate the strobe siren after 15 seconds. Enter with the following information:
Name: Deactivate strobe siren 15s after detection
Wait between actions: 00:00:15
Condition: Audio analytics > Audio level above threshold
Select Invert this condition.
Action: Notifications > Send notification through HTTP
Recipient: Strobe siren
The information must be the same as you previously entered under Events > Recipients > Name.
Method: Post
Body:
- Make sure to enter the same information under ‘"profile" : <>’ as you did when you created the profile in the strobe siren, in this case: “Strobe siren profile”.
Click Save.
{
"apiVersion": "1.0",
"method": "stop",
"params": {
"profile" : "Strobe siren profile"
}
}
Record video when the device detects a person and a shout
This example explains how to set up the Axis device to record video to an SD card as soon as both the following conditions are met:
AXIS Object Analytics detects a person.
AXIS Audio Analytics detects a shout.
In the device’s web interface, go to Analytics > Audio analytics and make sure that Adaptive audio detection is on.
In the device’s web interface, go to Apps and make sure that Axis Object Analytics is on.
To check that the SD card is mounted, go to System > Storage.
In AXIS Object Analytics, click + New scenario.
Select Object in area and click Next.
Select Human and click Next.
Adjust the area of interest if necessary.
Click Finish.
Back in the device interface, go to System > Events and add a rule.
Enter a name for the rule.
For the first condition, select Shout detected under Audio analytics.
Add a second condition and select the AXIS Object Analytics scenario you created under Applications.
In the list of actions, under Recordings, select Record video.
In the list of storage options, select SD-DISK.
Select a Camera and a Stream profile.
If you want to start the recording before the sound was detected, enter a Prebuffer time.
Click Save.
Learn more
Audio classification
The application is currently able to classify two types of distinct sounds from an audio stream: screams and shouts.
A scream is characterized by a loud and high-pitched vocalization, often elicited to express fear or pain.
A shout is characterized by a person speaking in a loud voice, often elicited in anger or to attract attention.
If the application is configured to detect either of these sounds, it will represent them as blue or red lines in the user interface. The output of the detection will consist of metadata.
Privacy control
For privacy considerations, audio streaming is turned off by default on all Axis devices. You do not need to enable audio streaming to use AXIS Audio Analytics, as the application can still visualize and generate metadata about captured audio without storing it anywhere.
This means that you only have to enable audio streaming if you want to configure the application to process and encode captured audio for storage.
Example
Integration
Set up alarms in AXIS Camera Station
This example explains how to set up a rule in AXIS Camera Station to alert the operator and record video when AXIS Audio Analytics detects a scream.
Before you start
- You need:
an Axis network camera with AXIS Audio Analytics set up and running, see Get started
a computer with AXIS Camera Station installed
- Add the camera to AXIS Camera Station
In AXIS Camera Station, add the camera. See the user manual for AXIS Camera Station.
- Create a device event trigger
Click and go to Configuration > Recording and events > Action rules and click New.
Click Add to add a trigger.
Select Device event from the list of triggers and click Ok.
In the Configure device event trigger section:
In Device, select the camera.
In Event, select Scream detected from the options for AXIS Audio Analytics
In Trigger period, set an interval time between two successive triggers. Use this function to reduce the number of successive recordings. If an additional trigger occurs within this interval, the recording will continue and the trigger period starts over from that point in time.
In Filters, set active to Yes.
Click Ok.
- Create actions to raise alarms and record video
Click Next.
Click Add to add an action.
Select Raise alarm from the list of actions and click Ok.
- Note
The alarm message is what the operator sees when an alarm is raised.
In the Alarm message section, enter an alarm title and description.
Click Ok.
Click Add to add another action.
Select Record from the list of actions and click Ok.
In the list of cameras, select the camera to use for recording.
Select a profile and set the prebuffer and postbuffer.
Click Ok.
- Specify when the alarm is active
Click Next.
If you only want the alarm to be active during certain hours, select Custom schedule.
Select a schedule from the list.
Click Next.
Enter a name for the rule.
Click Finish.