Update: resampler
Browse files
README.md
CHANGED
@@ -95,7 +95,8 @@ model = Wav2Vec2ForCTC.from_pretrained("qqhann/w2v_hf_jsut_xlsr53")
|
|
95 |
model.to("cuda")
|
96 |
|
97 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]' # TODO: adapt this list to include all special characters you removed from the data
|
98 |
-
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
|
|
99 |
|
100 |
# Preprocessing the datasets.
|
101 |
# We need to read the aduio files as arrays
|
|
|
95 |
model.to("cuda")
|
96 |
|
97 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]' # TODO: adapt this list to include all special characters you removed from the data
|
98 |
+
# resampler = torchaudio.transforms.Resample(48_000, 16_000) # JSUT is already 16kHz
|
99 |
+
resampler = torchaudio.transforms.Resample(16_000, 16_000) # JSUT is already 16kHz
|
100 |
|
101 |
# Preprocessing the datasets.
|
102 |
# We need to read the aduio files as arrays
|