Update app.py
Browse files
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 |
|