concrete.audio.ttypes module

class concrete.audio.ttypes.Sound(wav=None, mp3=None, sph=None, path=None)

Bases: object

A sound wave. A separate optional field is defined for each suppported format. Typically, a Sound object will only define a single field.

Note: we may want to have separate fields for separate channels (left vs right), etc.

- wav
- mp3
- sph
- path

An absolute path to a file on disk where the sound file can be

found. It is assumed that this path will be accessable from any machine that the system is run on (i.e., it should be a shared disk, or possibly a mirrored directory).

read(iprot)
thrift_spec = (None, (1, 11, 'wav', 'BINARY', None), (2, 11, 'mp3', 'BINARY', None), (3, 11, 'sph', 'BINARY', None), (4, 11, 'path', 'UTF8', None))
validate()
write(oprot)