juangtzi commited on
Commit
968ccd7
1 Parent(s): 4f7c91e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def speech_to_speech_translation(audio):
59
  translated_text = translate(audio)
60
  synthesised_speech = synthesise(translated_text)
61
  audio_data = synthesised_speech.cpu().numpy()
62
- audio_data = np.squeeze(audio_data)
63
- audio_data = audio_data / np.max(np.abs(audio_data))
64
  sample_rate = 16000
65
  return (sample_rate, audio_data)
66
 
 
59
  translated_text = translate(audio)
60
  synthesised_speech = synthesise(translated_text)
61
  audio_data = synthesised_speech.cpu().numpy()
62
+ #audio_data = np.squeeze(audio_data)
63
+ #audio_data = audio_data / np.max(np.abs(audio_data))
64
  sample_rate = 16000
65
  return (sample_rate, audio_data)
66