gorkemgoknar commited on
Commit
037cd85
1 Parent(s): 8e7eadf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(np.float)
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: