leofltt commited on
Commit
b2319dd
1 Parent(s): c909167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def synthesise(text):
39
  def speech_to_speech_translation(audio):
40
  translated_text = translate(audio)
41
  synthesised_speech = synthesise(translated_text)
42
- synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
43
  return 16000, synthesised_speech
44
 
45
 
 
39
  def speech_to_speech_translation(audio):
40
  translated_text = translate(audio)
41
  synthesised_speech = synthesise(translated_text)
42
+ synthesised_speech = (synthesised_speech * 32767).astype(np.int16)
43
  return 16000, synthesised_speech
44
 
45