Spectrogram calculation for NumPy
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
docs
stft
tests
.drone.yml
.gitignore
.travis.yml
LICENSE
README.md
conftest.py
requirements.txt
setup.cfg
setup.py
tox.ini

README.md

STFT

Build Status Docs Status

This is a package for calculating the short time fourier transform (spectrogram) or any other transform in a lapped and windowed fashion.

Installation

You can install this library using pip:

pip install stft

Usage

Loading a file and calculating the spectrogram, its inverse and saving the result.

import stft
import scipy.io.wavfile as wav

fs, audio = wav.read('input.wav')
specgram = stft.spectrogram(audio)
output = stft.ispectrogram(specgram)
wav.write('output.wav', fs, output)