(cls, config=None)
return hparams
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.
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.
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 .
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
def params ( cls , config = None ) : 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