babycat.WaveformNamedResult

class WaveformNamedResult

Bases: object

A container for decoding operations that may have succeeded or failed.

WaveformNamedResult contains either a Waveform from a successful audio decoding or a Python exception from a failed audio decoding.

__new__(**kwargs)
__repr__()

Return repr(self).

exception

None if decoding succeeded… or an exception if decoding failed.

name

The “name” of a result as a str, typically a filename for an audio file.

waveform

A Waveform if decoding succeeded… or None if decoding failed.