We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c48edd commit 184466aCopy full SHA for 184466a
examples/hubert/utils/feature_utils.py
@@ -68,7 +68,9 @@ def extract_feature(
68
waveform = waveform[0].to(device)
69
if feature_type == "mfcc":
70
feature_extractor = torchaudio.transforms.MFCC(
71
- sample_rate=sample_rate
+ sample_rate=sample_rate,
72
+ n_mfcc=13,
73
+ melkwargs={'n_fft': 400, 'hop_length': 160, 'center': False}
74
).to(device)
75
mfccs = feature_extractor(waveform) # (freq, time)
76
# mfccs = torchaudio.compliance.kaldi.mfcc(
0 commit comments