Spaces:
Build error
Build error
Commit
·
037cd85
1
Parent(s):
8e7eadf
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def stt_record(audio_record_buffer):
|
|
| 44 |
else:
|
| 45 |
sr, y = audio_record_buffer
|
| 46 |
|
| 47 |
-
y = librosa.resample(y, orig_sr=sr, target_sr=16000).astype(
|
| 48 |
|
| 49 |
scorer = True # use scorer
|
| 50 |
if scorer:
|
|
|
|
| 44 |
else:
|
| 45 |
sr, y = audio_record_buffer
|
| 46 |
|
| 47 |
+
y = librosa.resample(y, orig_sr=sr, target_sr=16000).astype("int16")
|
| 48 |
|
| 49 |
scorer = True # use scorer
|
| 50 |
if scorer:
|