This project folder contains several very useful scripts that may be extended to general sound frequency analysis, all is written in python3
Currently, it's my project interest to analyze the sound made by drones, but the tools does not restrict itself to any certain type of sounds.
This script is designed to record audio data into numpy arrays (float arrays). With microphone hooked up to the default input,
sounddevice module will be used to convert audio input into numpy arrays.
The script takes in two[,three] arguments, in following order:
recordlength.py filename length[ fs]
filename is a string where you wish where the final saved file would end up.
length is an int which describe how many seconds this recording will be.
fs is optional, where you specify the sampling frequency, the default sampling frequency is 44100.
This script is a very simple analyzer utilizing signal welch and matplotlib to effectively transform audio data into frequency space. it will show a red line for the audio data being analyzed. Peak will be labeled based on my preliminary peak finding algorithm.
filename is a string pointing to the data file you want to analyze. default frequency is 44100.
This script will take audio data and analyze its frequency as parts of time - this will be useful to analyze data