YCHuang2112 commited on
Commit
e701653
·
1 Parent(s): af5acf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -77,7 +77,9 @@ def synthesise(text):
77
 
78
  def speech_to_speech_translation(audio):
79
  translated_text = translate(audio)
 
80
  synthesised_speech = synthesise(translated_text)
 
81
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
82
  return 16000, synthesised_speech
83
 
 
77
 
78
  def speech_to_speech_translation(audio):
79
  translated_text = translate(audio)
80
+ print(translated_text)
81
  synthesised_speech = synthesise(translated_text)
82
+ print(synthesised_speech)
83
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
84
  return 16000, synthesised_speech
85