Car honk detector using Edge Impulse
The aim of this project is to be able to detect sounds made by a car horn using Edge Impulse embedded machine learning solution.
We are using the UrbanSound8K dataset to train our neural network.
You will need to create an account on EdgeImpulse first. It is also recommended to follow their tutorial on sound recognition to start with.
The project is based on ST Discovery kit IOT node but it should work with any other supported hardware.
credentials.json.template
to credentials.json
librosa
and requests
packagesThe script wavToEdgeImpulse.py
imports wav files from UrbanSound8K dataset and convert files to mono/16kHz format. They are uploaded to EdgeImpulse ingestion service in both training and testing datasets.
Some important variables and functions in the script:
The script may run for a couple of minutes as a few hundreds samples have to be converted and uploaded to the ingestion service. All samples will then appear in your Edge Impulse dashboard.