dcase_util.containers.AudioContainer.save

AudioContainer.save(filename=None, bit_depth=16, bit_rate=None)[source]

Save audio

Parameters
filenamestr, optional

File path, if None given filename parameter given to class constructor is used. Default value None

bit_depthint, optional

Bit depth for audio. Default value 16

bit_rateint, optional

Bit rate for compressed audio formats. Default value None

Returns
self
Raises
ImportError:

Error if file format specific module cannot be imported

IOError:

File has unknown file format