code: def __init__(self, ap, augmentation_config):
      self.ap = ap
      self.use_additive_noise = False
  
      if "additive" in augmentation_config.keys():
          self.additive_noise_config = augmentation_config["additive"]
          additive_path = self.additive_noise_config["sounds_path"]
          if additive_path:
              self.use_additive_noise = True
              # get noise types
              self.additive_noise_types = []
              for key in self.additive_noise_config.keys():
                  if isinstance(self.additive_noise_config[key], dict):
                      self.additive_noise_types.append(key)
  
              additive_files = glob.glob(
                  os.path.join(additive_path, "**/*.wav"),
                  recursive=True,
              )
  
              self.noise_list = {}
  
              for wav_file in additive_files:
                  noise_dir = wav_file.replace(additive_path, "").split(
                      os.sep
                  )[0]
                  # ignore not listed directories
                  if noise_dir not in self.additive_noise_types:
                      continue
                  if not noise_dir in self.noise_list:
                      self.noise_list[noise_dir] = []
                  self.noise_list[noise_dir].append(wav_file)
  
              print(
                  f" | > Using Additive Noise Augmentation: with {len(additive_files)} audios instances from {self.additive_noise_types}"
              )
  
      self.use_rir = False
  
      if "rir" in augmentation_config.keys():
          self.rir_config = augmentation_config["rir"]
          if self.rir_config["rir_path"]:
              self.rir_files = glob.glob(
                  os.path.join(self.rir_config["rir_path"], "**/*.wav"),
                  recursive=True,
              )
              self.use_rir = True
  
          print(
              f" | > Using RIR Noise Augmentation: with {len(self.rir_files)} audios instances"
          )
  
      self.create_augmentation_global_list()
  
file_path: TTS/TTS/encoder/utils/generic_utils.py
imports: import glob
  import os
  import random
  import numpy
  from scipy import signal
  from TTS.encoder.models.lstm import LSTMSpeakerEncoder
  from TTS.encoder.models.resnet import ResNetSpeakerEncoder
label_desc: Use image node_id 1 to create a new AugmentWAV object from inherited base classes: object with example: obj = AugmentWAV(ap, augmentation_config)