def __init__(self, audio_conf, normalize=False, speed_volume_perturb=False, spec_augment=False):
    '\n        Parses audio file into spectrogram with optional normalization and various augmentations\n        :param audio_conf: Dictionary containing the sample rate, window and the window length/stride in seconds\n        :param normalize(default False):  Apply standard mean and deviation normalization to audio tensor\n        :param speed_volume_perturb(default False): Apply random tempo and gain perturbations\n        :param spec_augment(default False): Apply simple spectral augmentation to mel spectograms\n        '
    super(SpectrogramParser, self).__init__()
    self.window_stride = audio_conf['window_stride']
    self.window_size = audio_conf['window_size']
    self.sample_rate = audio_conf['sample_rate']
    self.window = windows.get(audio_conf['window'], windows['hamming'])
    self.normalize = normalize
    self.speed_volume_perturb = speed_volume_perturb
    self.spec_augment = spec_augment
    self.noiseInjector = (NoiseInjection(audio_conf['noise_dir'], self.sample_rate, audio_conf['noise_levels']) if (audio_conf.get('noise_dir') is not None) else None)
    self.noise_prob = audio_conf.get('noise_prob')
Parses audio file into spectrogram with optional normalization and various augmentations
:param audio_conf: Dictionary containing the sample rate, window and the window length/stride in seconds
:param normalize(default False):  Apply standard mean and deviation normalization to audio tensor
:param speed_volume_perturb(default False): Apply random tempo and gain perturbations
:param spec_augment(default False): Apply simple spectral augmentation to mel spectograms
def __init__(self, audio_conf, normalize=False, speed_volume_perturb=False, spec_augment=False):
    '\n        Parses audio file into spectrogram with optional normalization and various augmentations\n        :param audio_conf: Dictionary containing the sample rate, window and the window length/stride in seconds\n        :param normalize(default False):  Apply standard mean and deviation normalization to audio tensor\n        :param speed_volume_perturb(default False): Apply random tempo and gain perturbations\n        :param spec_augment(default False): Apply simple spectral augmentation to mel spectograms\n        '
    super(SpectrogramParser, self).__init__()
    self.window_stride = audio_conf['window_stride']
    self.window_size = audio_conf['window_size']
    self.sample_rate = audio_conf['sample_rate']
    self.window = windows.get(audio_conf['window'], windows['hamming'])
    self.normalize = normalize
    self.speed_volume_perturb = speed_volume_perturb
    self.spec_augment = spec_augment
    self.noiseInjector = (NoiseInjection(audio_conf['noise_dir'], self.sample_rate, audio_conf['noise_levels']) if (audio_conf.get('noise_dir') is not None) else None)
    self.noise_prob = audio_conf.get('noise_prob')