Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def translate_speech(audio):
|
|
31 |
translated_text = translator(transcription, return_tensors="pt")
|
32 |
|
33 |
# Use the text-to-speech pipeline to synthesize the translated text
|
34 |
-
synthesised_speech = tts(translated_text
|
35 |
|
36 |
# Define the max_range variable
|
37 |
max_range = 32767 # You can adjust this value based on your requirements
|
|
|
31 |
translated_text = translator(transcription, return_tensors="pt")
|
32 |
|
33 |
# Use the text-to-speech pipeline to synthesize the translated text
|
34 |
+
synthesised_speech = tts(translated_text)
|
35 |
|
36 |
# Define the max_range variable
|
37 |
max_range = 32767 # You can adjust this value based on your requirements
|