Skip to content

About the variable 'input_audio_corrupt' in lines 240-241, isn't it target_audio_corrupt? #27

Open
@taehoGit

Description

@taehoGit

# ------------------------ Target audio ----------------------
# use the same augmented audio clip, add different random EQ and compressor
target_audio_corrupt = input_audio_aug.clone()
# apply frequency and dynamic range corrpution (expander)
if self.freq_corrupt and torch.rand(1).sum() < 0.75:
target_audio_corrupt = augmentations.frequency_corruption(
[target_audio_corrupt], self.sample_rate
)[0]
# peak normalize again before passing through dynamic range compressor
input_audio_corrupt /= input_audio_corrupt.abs().max()
input_audio_corrupt *= 10 ** (-12.0 / 20) # with min 3 dBFS headroom
if self.drc_corrupt and torch.rand(1).sum() < 0.75:
target_audio_corrupt = augmentations.dynamic_range_compression(
[target_audio_corrupt], self.sample_rate
)[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions