Effects#

librosa.effects provides wrapper functions for time-series manipulation, harmonic-percussive source separation, and standard audio effects.

It also provides some basic functions for trimming, splitting, or splicing signals.

hpss

Decompose an audio time series into harmonic and percussive components.

harmonic

Extract harmonic elements from an audio time-series.

percussive

Extract percussive elements from an audio time-series.

time_stretch

Time-stretch an audio series by a fixed rate.

pitch_shift

Shift the pitch of a waveform by n_steps steps.

remix

Remix an audio signal by re-ordering time intervals.

trim

Trim leading and trailing silence from an audio signal.

split

Split an audio signal into non-silent intervals.

preemphasis

Pre-emphasize an audio signal with a first-order differencing filter:

deemphasis

De-emphasize an audio signal with the inverse operation of preemphasis():