NicolasDenier
commited on
Commit
•
66c028b
1
Parent(s):
683b861
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def synthesise(text):
|
|
42 |
|
43 |
def speech_to_speech_translation(audio):
|
44 |
translated_text = translate(audio)
|
45 |
-
print("translated_text", translated_text)
|
46 |
synthesised_speech = synthesise(translated_text)
|
47 |
synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
|
48 |
return 16000, synthesised_speech
|
|
|
42 |
|
43 |
def speech_to_speech_translation(audio):
|
44 |
translated_text = translate(audio)
|
45 |
+
#print("translated_text", translated_text)
|
46 |
synthesised_speech = synthesise(translated_text)
|
47 |
synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
|
48 |
return 16000, synthesised_speech
|