qqpann commited on
Commit
cd5d23c
1 Parent(s): 5451826

Update: resampler

Browse files
Files changed (1) hide show
  1. README.md +2 -1
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