Skip to main content

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


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

pyhon_inverse_spectrogram-0.0.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page