Harveenchadha
commited on
Commit
•
69a550c
1
Parent(s):
798174a
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def parse_transcription_with_lm(wav_file):
|
|
46 |
|
47 |
def read_file_and_process(wav_file):
|
48 |
filename = wav_file.split('.')[0]
|
49 |
-
|
50 |
speech, _ = sf.read(filename + "16k.wav")
|
51 |
inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
|
52 |
|
|
|
46 |
|
47 |
def read_file_and_process(wav_file):
|
48 |
filename = wav_file.split('.')[0]
|
49 |
+
resampler(wav_file, filename + "16k.wav")
|
50 |
speech, _ = sf.read(filename + "16k.wav")
|
51 |
inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
|
52 |
|