Skip to content

Commit

Permalink
Normalizing audio within a 0-1 range
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorLakomkin authored and sean.narenthiran committed Jul 12, 2018
1 parent 655cd58 commit 082eddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def load_audio(path):
sound, _ = torchaudio.load(path)
sound, _ = torchaudio.load(path, normalization=True)
sound = sound.numpy()
if len(sound.shape) > 1:
if sound.shape[1] == 1:
Expand Down

0 comments on commit 082eddf

Please sign in to comment.