ZiyuG commited on
Commit
788eedd
·
verified ·
1 Parent(s): 18fcc38

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +3 -3
audio.py CHANGED
@@ -1,4 +1,4 @@
1
- from moviepy.editor import *
2
  from gtts import gTTS
3
  from pydub import AudioSegment
4
  import tempfile
@@ -77,9 +77,9 @@ def gen_audio(subtitles, tmpdir):
77
  final_audio = CompositeAudioClip(clips)
78
  return final_audio
79
 
80
- audio_clip = generate_audio(subtitles, total_duration)
81
 
82
- video_with_audio = video_with_subtitles.set_audio(audio_clip)
83
 
84
  video_with_audio.write_videofile(tmpdir + '/output_with_subtitles.mp4', fps=24)
85
 
 
1
+ from moviepy import *
2
  from gtts import gTTS
3
  from pydub import AudioSegment
4
  import tempfile
 
77
  final_audio = CompositeAudioClip(clips)
78
  return final_audio
79
 
80
+ #audio_clip = generate_audio(subtitles, total_duration)
81
 
82
+ video_with_audio = video_with_subtitles #.set_audio(audio_clip)
83
 
84
  video_with_audio.write_videofile(tmpdir + '/output_with_subtitles.mp4', fps=24)
85