https://github.com/nils-werner/stft
Spectrogram calculation for NumPy
https://github.com/nils-werner/stft
audio-analysis fft scipy signal-processing stft
Last synced: about 1 month ago
JSON representation
Spectrogram calculation for NumPy
- Host: GitHub
- URL: https://github.com/nils-werner/stft
- Owner: nils-werner
- License: mit
- Created: 2014-04-24T15:43:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-12-22T15:46:58.000Z (4 months ago)
- Last Synced: 2025-03-02T13:09:02.379Z (about 2 months ago)
- Topics: audio-analysis, fft, scipy, signal-processing, stft
- Language: Python
- Homepage: http://stft.readthedocs.org/
- Size: 133 KB
- Stars: 45
- Watchers: 7
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
STFT
====[](https://travis-ci.org/nils-werner/stft)
[](https://stft.readthedocs.org/en/latest/)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 wavfs, audio = wav.read('input.wav')
specgram = stft.spectrogram(audio)
output = stft.ispectrogram(specgram)
wav.write('output.wav', fs, output)