This commit is contained in:
kris 2019-03-14 21:45:28 +00:00
parent cd17dce267
commit ea58c2f5b9

View File

@ -1,10 +1,7 @@
import random
import numpy as np
import audioread
import librosa
import numpy as np
import opcodes
import video
@ -34,7 +31,7 @@ class Audio:
return a
def _normalization(self, read_bytes=1024*1024*10):
def _normalization(self, read_bytes=1024 * 1024 * 10):
"""Read first read_bytes of audio stream and compute normalization.
We compute the 2.5th and 97.5th percentiles i.e. only 2.5% of samples