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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pyhon_inverse_spectrogram-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyhon_inverse_spectrogram-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.12

File hashes

Hashes for pyhon_inverse_spectrogram-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59811d4463ae921060be102f8661a9f8b05471995944d6390b153e37b8d9bedf
MD5 86112c87b00c54c3ffe5dae552865ca9
BLAKE2b-256 4f843a7f85c09f37bb8dfdfab9094bfb90f05d8dd5816444c2c5c13decb4367f

See more details on using hashes here.

Supported by

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