done
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def shorten_audio(filename):
|
|
| 20 |
audio = AudioSegment.from_file(filename)
|
| 21 |
cut_audio = audio[: 60 * 1000]
|
| 22 |
cut_audio.export(cut_filename, format="mp4")
|
| 23 |
-
return cut_filename
|
| 24 |
|
| 25 |
|
| 26 |
def generate_translation(original_text, destination_language):
|
|
|
|
| 20 |
audio = AudioSegment.from_file(filename)
|
| 21 |
cut_audio = audio[: 60 * 1000]
|
| 22 |
cut_audio.export(cut_filename, format="mp4")
|
| 23 |
+
return cut_filename
|
| 24 |
|
| 25 |
|
| 26 |
def generate_translation(original_text, destination_language):
|