Skip to content

Commit

Permalink
Change normalization to -18 dB to avoid distortion.
Browse files Browse the repository at this point in the history
  • Loading branch information
patriotyk committed Jan 27, 2024
1 parent 5bea7a4 commit d28ce87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narizaka/aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def segments(self, transcribed):
'flac_sr': self.current_sr_orig
}

def normalize_loudness(self, wav: torch.Tensor, sample_rate: int, loudness_headroom_db: float = 12,
def normalize_loudness(self, wav: torch.Tensor, sample_rate: int, loudness_headroom_db: float = 18,
energy_floor: float = 2e-3):
"""Normalize an input signal to a user loudness in dB LKFS.
Audio loudness is defined according to the ITU-R BS.1770-4 recommendation.
Expand Down

0 comments on commit d28ce87

Please sign in to comment.