(sr=16000,
                  bins=40,
                  dither=True,
                  use_delta_deltas=True,
                  cmvn=False,
                  cmvn_path='')
return p
feat params
feat params
feat params
def speech_params(sr=16000,
                  bins=40,
                  dither=True,
                  use_delta_deltas=True,
                  cmvn=False,
                  cmvn_path=''):
  ''' feat params '''
  p = HParams()
  p.add_hparam("audio_sample_rate", sr)
  p.add_hparam("audio_channels", 1)
  p.add_hparam("audio_preemphasis", 0.97)
  if dither:
    p.add_hparam("audio_dither", 1.0 / np.iinfo(np.int16).max)
  else:
    p.add_hparam("audio_dither", 0.0)
  p.add_hparam("audio_frame_length", 25.0)
  p.add_hparam("audio_frame_step", 10.0)
  p.add_hparam("audio_lower_edge_hertz", 20.0)
  p.add_hparam("audio_upper_edge_hertz", sr / 2.0)
  p.add_hparam("audio_num_mel_bins", bins)
  p.add_hparam("audio_add_delta_deltas", use_delta_deltas)
  p.add_hparam("num_zeropad_frames", 0)
  p.add_hparam("audio_global_cmvn", cmvn)
  p.add_hparam("audio_cmvn_path", cmvn_path)
  return p
def speech_params ( sr = 16000 , bins = 40 , dither = True , use_delta_deltas = True , cmvn = False , cmvn_path = '' ) : p = HParams ( ) p . add_hparam ( "audio_sample_rate" , sr ) p . add_hparam ( "audio_channels" , 1 ) p . add_hparam ( "audio_preemphasis" , 0.97 ) if dither : p . add_hparam ( "audio_dither" , 1.0 / np . iinfo ( np . int16 ) . max ) else : p . add_hparam ( "audio_dither" , 0.0 ) p . add_hparam ( "audio_frame_length" , 25.0 ) p . add_hparam ( "audio_frame_step" , 10.0 ) p . add_hparam ( "audio_lower_edge_hertz" , 20.0 ) p . add_hparam ( "audio_upper_edge_hertz" , sr / 2.0 ) p . add_hparam ( "audio_num_mel_bins" , bins ) p . add_hparam ( "audio_add_delta_deltas" , use_delta_deltas ) p . add_hparam ( "num_zeropad_frames" , 0 ) p . add_hparam ( "audio_global_cmvn" , cmvn ) p . add_hparam ( "audio_cmvn_path" , cmvn_path ) return p