scale value fix (#1006)
This commit is contained in:
@@ -80,7 +80,7 @@ def get_features(test_wav_filename):
|
||||
samples = librosa.resample(samples, orig_sr=sample_rate, target_sr=16000)
|
||||
sample_rate = 16000
|
||||
|
||||
samples *= 372768
|
||||
samples *= 32768
|
||||
|
||||
opts = knf.MfccOptions()
|
||||
# See https://github.com/Tele-AI/TeleSpeech-ASR/blob/master/mfcc_hires.conf
|
||||
|
||||
@@ -112,7 +112,7 @@ def get_features(test_wav_filename):
|
||||
audio = torchaudio.functional.resample(
|
||||
audio, orig_freq=sample_rate, new_freq=16000
|
||||
)
|
||||
audio *= 372768
|
||||
audio *= 32768
|
||||
|
||||
opts = knf.FbankOptions()
|
||||
opts.frame_opts.dither = 0
|
||||
|
||||
@@ -52,7 +52,7 @@ def get_features(test_wav_filename):
|
||||
audio = torchaudio.functional.resample(
|
||||
audio, orig_freq=sample_rate, new_freq=16000
|
||||
)
|
||||
audio *= 372768
|
||||
audio *= 32768
|
||||
|
||||
opts = knf.FbankOptions()
|
||||
opts.frame_opts.dither = 0
|
||||
|
||||
Reference in New Issue
Block a user