Spaces:
Sleeping
Sleeping
Aryan Wadhawan
commited on
Commit
•
f00c540
1
Parent(s):
a8a95c8
app.py
CHANGED
@@ -18,7 +18,7 @@ def lark(audioAsB64):
|
|
18 |
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-xlsr-53-espeak-cv-ft")
|
19 |
|
20 |
waveform, sample_rate = librosa.load(
|
21 |
-
"
|
22 |
) # Downsample 44.1kHz to 8kHz
|
23 |
|
24 |
input_values = processor(
|
|
|
18 |
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-xlsr-53-espeak-cv-ft")
|
19 |
|
20 |
waveform, sample_rate = librosa.load(
|
21 |
+
"audio.wav", sr=16000
|
22 |
) # Downsample 44.1kHz to 8kHz
|
23 |
|
24 |
input_values = processor(
|