Update app.py
Browse files
app.py
CHANGED
|
@@ -293,9 +293,9 @@ async def generate_tts_optimized(id, lines, lang):
|
|
| 293 |
if output and os.path.exists(audio_path):
|
| 294 |
audio = MP3(audio_path)
|
| 295 |
duration = audio.info.length
|
| 296 |
-
|
| 297 |
|
| 298 |
-
return
|
| 299 |
|
| 300 |
def audio_func(id, lines, lang):
|
| 301 |
"""Synchronous wrapper for audio generation."""
|
|
|
|
| 293 |
if output and os.path.exists(audio_path):
|
| 294 |
audio = MP3(audio_path)
|
| 295 |
duration = audio.info.length
|
| 296 |
+
|
| 297 |
|
| 298 |
+
return duration, audio_path
|
| 299 |
|
| 300 |
def audio_func(id, lines, lang):
|
| 301 |
"""Synchronous wrapper for audio generation."""
|