Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ def synthesise(text):
|
|
34 |
|
35 |
def speech_to_speech_translation(audio):
|
36 |
translated_text = translate(audio)
|
|
|
37 |
synthesised_speech = synthesise(translated_text)
|
38 |
synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
|
39 |
return 16000, synthesised_speech
|
|
|
34 |
|
35 |
def speech_to_speech_translation(audio):
|
36 |
translated_text = translate(audio)
|
37 |
+
prin(translated_text)
|
38 |
synthesised_speech = synthesise(translated_text)
|
39 |
synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
|
40 |
return 16000, synthesised_speech
|