All Projects → IQTLabs → Audio-Sensor-Toolkit

IQTLabs / Audio-Sensor-Toolkit

Licence: Apache-2.0 License
A guide and set of tools for working with TinyML powered Audio Sensors

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Audio Sensor Toolkit

boards

This is a guide on how to build an Audio Sensor using Machine Learning, and helpful tools.

Audio Sensor Guide

Audio Tools

Accelerometer Tools

The tools are a set of scripts to help capture and process sensor data coming from microcontrollers running Arduino. "TinyML" is the catch phrase for running optimized TensorFlow models on microcontrollers. These tools have been written to work with Edge Impulse, a platform for developing ML models for Edge devices. These scripts can be easily adapted if you are working directly with TensorFlow Lite micro.

The tools record data from the sensors on-board the Arduino development boards and transfer the data to a computer over a serial connection. Since the sampling rates are often higher than the speed of the serial connection, the program buffers the sensor data in memory and then transfers it. Some of the tools also support saving the collected samples to an optionally attached MicroSD card.

Two different types of sensor data are supported:

  • PDM data from a microphone. These tools are located in the sound folder.
  • 3 Axis Accelerometer data from the LSM9DS1 sensor, which is on the Arduino Nano 33 Sense. These tools are located in the accelerometer folder.

Install the requirements

To install the required modules, run:

pip3 install -r requirements.txt

Uploading to Edge Impulse

The collected samples can be uploaded to the Edge Impulse platform using the upload tool. You can reset what project you are uploading to using the --clean argument:

edge-impulse-uploader --clean

Here is an example of uploading some noise samples:

edge-impulse-uploader --label noise --category testing *.wav
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].