Update app.py
Browse files
app.py
CHANGED
@@ -242,7 +242,14 @@ def process_entry(entry, i, video_width, video_height, add_voiceover, target_lan
|
|
242 |
if add_voiceover:
|
243 |
segment_audio_path = f"segment_{i}_voiceover.wav"
|
244 |
generate_voiceover([entry], target_language, segment_audio_path)
|
245 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
|
247 |
return txt_clip, audio_segment
|
248 |
|
|
|
242 |
if add_voiceover:
|
243 |
segment_audio_path = f"segment_{i}_voiceover.wav"
|
244 |
generate_voiceover([entry], target_language, segment_audio_path)
|
245 |
+
audio_clip = AudioFileClip(segment_audio_path)
|
246 |
+
# Get and log all methods in AudioFileClip
|
247 |
+
audio_methods = dir(audio_clip)
|
248 |
+
|
249 |
+
logger.info("Methods in AudioFileClip:")
|
250 |
+
for method in audio_methods:
|
251 |
+
logger.info(method)
|
252 |
+
audio_segment = audio_clip.set_duration(entry["end"] - entry["start"]) # No subclip here
|
253 |
|
254 |
return txt_clip, audio_segment
|
255 |
|