dcase_util.files.Package.detect_file_format

Package.detect_file_format(filename=None)

Detect file format from extension

Parameters
filenamestr

filename Default value None

Returns
str

format tag

Raises
IOError:

Unknown file format