vadhri commited on
Commit
7e64ac5
·
verified ·
1 Parent(s): b98b69c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +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
 
 
39
  def speech_to_speech_translation(audio):
40
  translated_text = translate(audio)
41
  synthesised_speech = synthesise(translated_text)
42
+ synthesised_speech = synthesised_speech[:1800]
43
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
44
  return 16000, synthesised_speech
45