Audio signals#

load

Load an audio file as a floating point time series.

loadx

Load an example audio file by key.

stream

Stream audio in fixed-length buffers.

resample

Resample a time series from orig_sr to target_sr

get_duration

Compute the duration (in seconds) of an audio time series, feature matrix, or filename.

get_samplerate

Get the sampling rate for a given file.

to_mono

Convert an audio signal to mono by averaging samples across channels.

to_stereo

Combine two signals into a stereo signal.

to_multi

Combine multiple signals into a multi-channel signal.

clicks

Construct a "click track".

tone

Construct a pure tone (cosine) signal at a given frequency.

chirp

Construct a "chirp" or "sine-sweep" signal.

autocorrelate

Bounded-lag auto-correlation

zero_crossings

Find the zero-crossings of a signal y: indices i such that sign(y[i]) != sign(y[j]).