Spaces:
Build error
Build error
Commit
·
0e33a67
1
Parent(s):
d64ed9d
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def stt_record(audio_record_buffer):
|
|
41 |
|
42 |
if type(audio_record_buffer)!=tuple:
|
43 |
y, sr = librosa.load(audio_record_buffer)
|
|
|
44 |
else:
|
45 |
sr, y = audio_record_buffer
|
46 |
|
|
|
41 |
|
42 |
if type(audio_record_buffer)!=tuple:
|
43 |
y, sr = librosa.load(audio_record_buffer)
|
44 |
+
y = y.astype(np.int16)
|
45 |
else:
|
46 |
sr, y = audio_record_buffer
|
47 |
|