scale value fix (#1006)

This commit is contained in:
Lovemefan
2024-06-14 16:51:53 +08:00
committed by GitHub
parent dd21ebdabf
commit b1f08c0a20
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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