IHHI commited on
Commit
6131ae5
·
1 Parent(s): eb840cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -33,7 +33,8 @@ def speech_to_speech_translation(audio):
33
  target_dtype = np.int16
34
  max_range = np.iinfo(target_dtype).max
35
  sr, audio = synthesise(translated_text)
36
- audio = (audio * max_range).astype(np.int16)
 
37
  return sr, audio
38
 
39
 
 
33
  target_dtype = np.int16
34
  max_range = np.iinfo(target_dtype).max
35
  sr, audio = synthesise(translated_text)
36
+ audio = (audio * 32767).astype(np.int16)
37
+ print(audio)
38
  return sr, audio
39
 
40