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