ZiyuG commited on
Commit
09fcd9c
1 Parent(s): 798ca11

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +4 -0
audio.py CHANGED
@@ -43,6 +43,10 @@ def gen_audio(subtitles, tmpdir):
43
  print("Generated Video with Subtitles to:", tmpdir + '/output_with_subtitles.mp4')
44
  return tmpdir + '/output_with_subtitles.mp4'
45
 
 
 
 
 
46
  def generate_audio(subtitles, total_duration):
47
  temp_audio_path = tempfile.mkdtemp()
48
  clips = []
 
43
  print("Generated Video with Subtitles to:", tmpdir + '/output_with_subtitles.mp4')
44
  return tmpdir + '/output_with_subtitles.mp4'
45
 
46
+ combined_clip.write_videofile(tmpdir + '/output_with_subtitles.mp4', fps=24)
47
+ print("Generated Video with Subtitles to:", tmpdir + '/output_with_subtitles.mp4')
48
+ return tmpdir + '/output_with_subtitles.mp4'
49
+
50
  def generate_audio(subtitles, total_duration):
51
  temp_audio_path = tempfile.mkdtemp()
52
  clips = []