/Estimate-Frequency

An experiment to estimate the frequency of wav files in Python

Primary LanguagePython

Estimate Frequency

A quick script to estimate the primary frequencies of wav files. Operates by taking 20 frequency 'windows' per second, and performing a Fast Fourier Transform on these windows to extract the primary frequencies. The frequency with the highest magnitude is deemed the primary frequency, and plotted.

Usage

usage: estimateFrequency.py [-h] [-source SOURCE]

optional arguments:
  -h, --help      show this help message and exit
  -source SOURCE  wav file to be analyzed; defaults to ./data/range.wav

Dependencies

pip install -r requirements.txt

Requires numpy and matplotlib

References

data source (tones)
data source (pacman)
reference