maad.util.check_file_format

maad.util.check_file_format(path_audio)[source]

Check Wave file consistency. Check if WAVE format is correct and if file name follows standard format. The standard format is SITENAME_DATE_TIME.WAV, with DATE as YYYYMMDD and TIME as HHMMSS.

Parameters:
path_audiostr

Location of audio filename.

Returns:
errorint

0 if no error is found, 1 if WAVE format is incorrect and 2 if filename has no standard format.

Raises:
File Not Found

If file does not exist.