No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Script_Storage
engines
.gitignore
LICENSE
README.md
analyze.py
analyze_time.py
comparator.py
data.py
detector.py
filter_comparison.py
harmonics.py
new.py
recordlength.py
replay_record.py
test.py

README.md

sound-analyzer

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.

recordlength.py

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.

analyze.py

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.

To run: analyze.py filename

filename is a string pointing to the data file you want to analyze. default frequency is 44100.

analyze_time.py

This script will take audio data and analyze its frequency as parts of time - this will be useful to analyze data