bofenghuang
commited on
Commit
·
b34da12
1
Parent(s):
2f4ae8e
updt README.md
Browse files
README.md
CHANGED
@@ -95,7 +95,7 @@ processor = Wav2Vec2Processor.from_pretrained("bhuang/wav2vec2-xls-r-1b-voxpopul
|
|
95 |
model = AutoModelForCTC.from_pretrained("bhuang/wav2vec2-xls-r-1b-voxpopuli-fr").cuda()
|
96 |
|
97 |
# path to your audio file
|
98 |
-
wav_path = "
|
99 |
waveform, sample_rate = torchaudio.load(wav_path)
|
100 |
waveform = waveform.squeeze(axis=0) # mono
|
101 |
|
@@ -129,7 +129,7 @@ model = AutoModelForCTC.from_pretrained("bhuang/wav2vec2-xls-r-1b-voxpopuli-fr")
|
|
129 |
model_sampling_rate = processor_with_lm.feature_extractor.sampling_rate
|
130 |
|
131 |
# path to your audio file
|
132 |
-
wav_path = "
|
133 |
waveform, sample_rate = torchaudio.load(wav_path)
|
134 |
waveform = waveform.squeeze(axis=0) # mono
|
135 |
|
|
|
95 |
model = AutoModelForCTC.from_pretrained("bhuang/wav2vec2-xls-r-1b-voxpopuli-fr").cuda()
|
96 |
|
97 |
# path to your audio file
|
98 |
+
wav_path = "example.wav"
|
99 |
waveform, sample_rate = torchaudio.load(wav_path)
|
100 |
waveform = waveform.squeeze(axis=0) # mono
|
101 |
|
|
|
129 |
model_sampling_rate = processor_with_lm.feature_extractor.sampling_rate
|
130 |
|
131 |
# path to your audio file
|
132 |
+
wav_path = "example.wav"
|
133 |
waveform, sample_rate = torchaudio.load(wav_path)
|
134 |
waveform = waveform.squeeze(axis=0) # mono
|
135 |
|