Inverse spectogram for scipy.signal.spectrogram
Project description
# pyhon-inverse-spectrogram
Inverse spectogram for scipy.signal.spectrogram done for the human ears.
>>> from scipy.io import wavfile >>> import scipy.signal as signal >>> import numpy as np>>> fs, data = wavfile.read('./test_sound.wav') >>> left, right = list(zip(*data))>>> left = np.array(left)>>> f, t, Sxx = signal.spectrogram(left, fs, mode='magnitude') >>> lInverse = inverse_spectrogram(f, t, Sxx, fs)
## inverse_spectrogram(f, t, Sxx, fs) inverse_spectrogram calculates the inverse spectrogram from frequencies f, intervals t, magnitude matrix Sxx using the sample rate fs. Returns signal as a np.array
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pyhon_inverse_spectrogram-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59811d4463ae921060be102f8661a9f8b05471995944d6390b153e37b8d9bedf |
|
MD5 | 86112c87b00c54c3ffe5dae552865ca9 |
|
BLAKE2b-256 | 4f843a7f85c09f37bb8dfdfab9094bfb90f05d8dd5816444c2c5c13decb4367f |