nils-werner / stft

Spectrogram calculation for NumPy

Home Page:http://stft.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Spectrogram calculation for NumPy

http://stft.readthedocs.org/

License:MIT License


Languages

Language:Python 100.0%