Update video2.py
Browse files
video2.py
CHANGED
|
@@ -329,9 +329,7 @@ from moviepy.video.fx.speedx import speedx
|
|
| 329 |
|
| 330 |
# video.py
|
| 331 |
def video_func(id, lines, lang):
|
| 332 |
-
|
| 333 |
-
duration=100
|
| 334 |
-
audio_path="Sample.mp3"
|
| 335 |
if not duration or not audio_path:
|
| 336 |
print("Failed to generate audio.")
|
| 337 |
return None
|
|
|
|
| 329 |
|
| 330 |
# video.py
|
| 331 |
def video_func(id, lines, lang):
|
| 332 |
+
duration, audio_path = audio_func(id, lines, lang)
|
|
|
|
|
|
|
| 333 |
if not duration or not audio_path:
|
| 334 |
print("Failed to generate audio.")
|
| 335 |
return None
|