audio_curation.mp3_utility

class audio_curation.mp3_utility.Mp3File(file_path, mp3_metadata=None, load_tags_from_file=False, normalized_file_path=None)[source]

Represents an mp3 file, together with its metadata and associated normalized-sound file.

check_loudness()[source]

Get some loudness metric.

Returns:
is_file_normalized()[source]

Does the file_path indicate that this file is normalized?

Returns:
is_normalized_file_outdated()[source]

Is the normalized file corresponding to this file outdated?

Returns:
save_metadata()[source]

Saves metadata in the corresponding file on disk.

save_normalized(overwrite=False)[source]

Save the sound-normalized version of this file.

Currently the normalzied file produced will be mono-channel, around -16dbFS loud, have the same metadata as the original file. :param overwrite: :return:

set_normalized_file(normalized_file_path=None)[source]

Set details about the normalized file corresponding to this base file.

Returns:
class audio_curation.mp3_utility.Mp3Metadata(title=None, artist=None, album=None, album_artist=None)[source]

Models the metadata in an mp3 file.

get_from_file(file_path)[source]
set_in_file(file_path)[source]
audio_curation.mp3_utility.get_normalized_files(mp3_files, skip_missing=True)[source]