Skip to content

Compact CNNs on Audio for Keyword Spotting on Resource-Constrained Edge AI Devices

Notifications You must be signed in to change notification settings

Vedant01/Edge_AI_KeywordDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edge AI Keyword Detect

By Vedant Agarwal

Compact CNNs on Audio for Keyword Spotting on Resource-Constrained Edge AI Devices

To use the Main script: Make sure you have the following files in the same directory:

MainScript.py

ryModels.py (containing the model definition and label functions)

ryM.pt (the trained model weights)

Install the required libraries if you haven't already: pip install torch onnx onnxruntime numpy librosa

Replace "path_to_your_audio_file.wav" with the actual path to your audio file.

Run the script. It will:

Load the PyTorch model

Convert it to ONNX format

Run inference on your audio file

Print the predicted label and top 5 probabilities

This script provides a complete workflow from loading the model to running inference. It's designed to be easy to use and modify for your specific needs.

About

Compact CNNs on Audio for Keyword Spotting on Resource-Constrained Edge AI Devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages