class_docstr: Add a random signal-to-noise ratio noise or impulse response to clean speech, and
  write it to wavfile.
class_docstr_tok: ["Add","a","random","signal-to-noise","ratio","noise","or","impulse","response","to","clean","speech",",","and","write","it","to","wavfile","."]
docstr: Set params.
  :param config: contains ten optional parameters:
      --sample_rate                                 : Sample frequency of waveform data. (int, default = 16000)
      --if_add_rir          : If true, add rir to audio data. (bool, default = False)
      --rir_filelist        : FileList path of rir.(string, default = 'rirlist.scp')
      --if_add_noise        : If true, add random noise to audio data. (bool, default = False)
      --snr_min             : Minimum SNR adds to signal. (float, default = 0)
      --snr_max             : Maximum SNR adds to signal. (float, default = 30)
      --noise_filelist      : FileList path of noise.(string, default = 'noiselist.scp')
      --if_add_aecres       : If true, add aecres to audio data. (bool, default = False)
      --aecres_filelist     : FileList path of aecres.(string, default = 'aecreslist.scp')
      --speed               : Speed of sample channels wanted. (float, default=1.0)
  :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
docstr_tok: ["Set","params",".",":","param","config",":","contains","ten","optional","parameters",":","--","sample_rate",":","Sample","frequency","of","waveform","data",".","(","int",",","default","=","16000",")","--","if_add_rir",":","If","true",",","add","rir","to","audio","data",".","(","bool",",","default","=","False",")","--","rir_filelist",":","FileList","path","of","rir",".","(","string",",","default","=","'rirlist.scp","'",")","--","if_add_noise",":","If","true",",","add","random","noise","to","audio","data",".","(","bool",",","default","=","False",")","--","snr_min",":","Minimum","SNR","adds","to","signal",".","(","float",",","default","=","0",")","--","snr_max",":","Maximum","SNR","adds","to","signal",".","(","float",",","default","=","30",")","--","noise_filelist",":","FileList","path","of","noise",".","(","string",",","default","=","'noiselist.scp","'",")","--","if_add_aecres",":","If","true",",","add","aecres","to","audio","data",".","(","bool",",","default","=","False",")","--","aecres_filelist",":","FileList","path","of","aecres",".","(","string",",","default","=","'aecreslist.scp","'",")","--","speed",":","Speed","of","sample","channels","wanted",".","(","float",",","default=1.0",")",":","return",":","An","object","of","class","HParams",",","which","is","a","set","of","hyperparameters","as","name-value","pairs","."]
code: def params(cls, config=None):
      """
      Set params.
      :param config: contains ten optional parameters:
          --sample_rate				  : Sample frequency of waveform data. (int, default = 16000)
          --if_add_rir          : If true, add rir to audio data. (bool, default = False)
          --rir_filelist        : FileList path of rir.(string, default = 'rirlist.scp')
          --if_add_noise        : If true, add random noise to audio data. (bool, default = False)
          --snr_min             : Minimum SNR adds to signal. (float, default = 0)
          --snr_max             : Maximum SNR adds to signal. (float, default = 30)
          --noise_filelist      : FileList path of noise.(string, default = 'noiselist.scp')
          --if_add_aecres       : If true, add aecres to audio data. (bool, default = False)
          --aecres_filelist     : FileList path of aecres.(string, default = 'aecreslist.scp')
          --speed               : Speed of sample channels wanted. (float, default=1.0)
      :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
      """
  
      sample_rate = 16000
      if_add_rir = False
      rir_filelist = "rirlist.scp"
      if_add_noise = False
      noise_filelist = "noiselist.scp"
      snr_min = 0
      snr_max = 30
      if_add_aecres = False
      aecres_filelist = "aecreslist.scp"
      audio_channels = 1
      speed = 1.0
  
      hparams = HParams(cls=cls)
      hparams.add_hparam("sample_rate", sample_rate)
      hparams.add_hparam("speed", speed)
      hparams.add_hparam("if_add_rir", if_add_rir)
      hparams.add_hparam("if_add_noise", if_add_noise)
      hparams.add_hparam("rir_filelist", rir_filelist)
      hparams.add_hparam("noise_filelist", noise_filelist)
      hparams.add_hparam("snr_min", snr_min)
      hparams.add_hparam("snr_max", snr_max)
      hparams.add_hparam("if_add_aecres", if_add_aecres)
      hparams.add_hparam("aecres_filelist", aecres_filelist)
      hparams.add_hparam("audio_channels", audio_channels)
  
      if config is not None:
          hparams.override_from_dict(config)
  
      return hparams
  
file_path: delta/delta/data/frontend/add_noise_end_to_end.py
imports: import delta.compat
  from delta.utils.hparam import HParams
  from delta.data.frontend.read_wav import ReadWav
  from delta.data.frontend.add_rir_noise_aecres import Add_rir_noise_aecres
  from delta.data.frontend.write_wav import WriteWav
  from delta.data.frontend.base_frontend import BaseFrontend
label_desc: Use image node_id 2 for calling the AddNoiseEndToEnd obj's underlying member method code with example usage: obj.params(cls, config) and returns: hparams