Sound processing
The module sound
is an ensemble of functions to load and preprocess audio signals.
Input and output
|
Load an audio file (stereo or mono). |
|
Download audio file from the web and load it as a variable. |
|
Load an image from a file or an URL |
|
Write a NumPy array as a WAV file with the Scipy method. |
Preprocess audio
|
Filter a signal using a 1d finite impulse response filter. |
|
Filter 1D signal with a Kaiser-windowed filter. |
|
Smooth a spectrogram with a gaussian filter. |
|
Use a lowpass, highpass, bandpass or bandstop filter to process a 1d signal with an iir filter. |
|
Per-Channel Energy Normalization (PCEN) |
|
Remove background noise using spectral subtraction. |
|
Remove background noise in a spectrogram using mathematical morphology tool. |
|
Get the noisy profile along the defined axis and remove this profile from the spectrogram. |
|
Remove background noise in spectrogram using median equalizer. |
|
Reshape a sound waveform (ie vector) into a serie of frames (ie matrix) of length Nt. |
Transform audio
|
Compute a spectrogram using the short-time Fourier transform from an audio signal. |
|
Computes the average of a power spectrogram along the time axis. |
|
Computes the average of an amplitude spectrogram along the time axis. |
|
Transform a linear spectrum (1d) or Spectrogram (2d into octave or 1/3 octave spectrum (1d) or Spectrogram (2d). |
|
Calculate the envelope of a sound waveform (1d) |
|
Estimate the power spectral density or power spectrum of 1D signal. |
|
Changes the sample rate of an audio file or any time series. |
|
Slices a time series, from a initial time min_t to an ending time max_t. |
|
Normalize audio signal to desired amplitude or decibell full scale value (dBFS). |
|
Amply amplification or attenuation to the audio signal. |
Metrics
|
Compute the signal to noise ratio (SNR) of an audio signal in the time domain. |
|
Compute the signal to noise ratio (SNR) of an audio from its spectrogram in the time-frequency domain. |
|
Compute the sharpness of a spectrogram |