Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ language_codes = {
|
|
26 |
"Chinese": "cmn"
|
27 |
}
|
28 |
|
29 |
-
# Function to handle the translation
|
30 |
def translate_audio(audio_file, target_language):
|
31 |
language_code = language_codes[target_language]
|
32 |
output_file = "translated_audio.wav"
|
|
|
26 |
"Chinese": "cmn"
|
27 |
}
|
28 |
|
29 |
+
# Function to handle the translation to target language
|
30 |
def translate_audio(audio_file, target_language):
|
31 |
language_code = language_codes[target_language]
|
32 |
output_file = "translated_audio.wav"
|