dcase_util.utils.FileFormat.detect_based_on_content

classmethod FileFormat.detect_based_on_content(filename)[source]

Detect file format based on content by using python-magic.

Parameters
filenamestr

Path to the file

Returns
str

File format label