API

Functions

wavy.read(file)[source]

Read the the audio file.

Parameters:file (str or File) – Either the path to the file or an instance of File.
Returns:An object that represents the file.
Return type:WaveFile
wavy.info(file)[source]

Returns information about the audio file.

Parameters:file (str or File) – Either the path to the file or an instance of File.
Returns:Information about the file.
Return type:WaveFileInfo

Objects

class wavy.WaveFile(sample_width, framerate, data, tags=None)[source]

Class that represents a WAVE file.

data

numpy.ndarray – Audio data stored in numpy.ndarray. If the number of channels is one, the array will be one dimensional. Otherwise, the returned array will be two dimensional array of shape (n_frames, n_channels).

framerate

int – Sampling frequency (Hz).

n_channels

int – Number of audio channels.

n_frames

int – Number of audio frames.

sample_width

int – Sample width in bits.

tags

TODO