script/dataset/VoiceCommandDataset.py
def normalize(audio, target_level=-25):
    '''Normalize the signal to the target level'''
    rms = (audio ** 2).mean() ** 0.5
    scalar = 10 ** (target_level / 20) / (rms+EPS)
    audio = audio * scalar
    return audio
Normalize the signal to the target level
Normalize the signal to the target level
Normalize the signal to the target level
def normalize(audio, target_level=-25):
    rms = (audio ** 2).mean() ** 0.5
    scalar = 10 ** (target_level / 20) / (rms+EPS)
    audio = audio * scalar
    return audio
def normalize ( audio , target_level = - 25 ) : rms = ( audio ** 2 ) . mean ( ) ** 0.5 scalar = 10 ** ( target_level / 20 ) / ( rms + EPS ) audio = audio * scalar return audio
Normalize the signal to the target level
Normalize the signal to the target level
'''Normalize the signal to the target level'''
audio
target_level