This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.io.wavfile as sw | |
import numpy as np | |
def audio_normalize(y): | |
""" | |
Audio data normalization between [-1, 1]. | |
Parameters | |
---------- | |
y: numpy.ndarray, audio data from SciPy |