Spaces:
Runtime error
Runtime error
hope the sample rate converter works
Browse files
app.py
CHANGED
@@ -46,9 +46,6 @@ def stt(audio: Tuple[int, np.array]):
|
|
46 |
sample_rate, audio = audio
|
47 |
use_scorer = False
|
48 |
|
49 |
-
if sample_rate != 16000:
|
50 |
-
raise ValueError("Incorrect sample rate.")
|
51 |
-
|
52 |
recognized_result = client(audio, sample_rate, use_scorer)
|
53 |
|
54 |
return recognized_result
|
|
|
46 |
sample_rate, audio = audio
|
47 |
use_scorer = False
|
48 |
|
|
|
|
|
|
|
49 |
recognized_result = client(audio, sample_rate, use_scorer)
|
50 |
|
51 |
return recognized_result
|