shixian.shi commited on
Commit
852ca96
·
1 Parent(s): 5171a97
Files changed (1) hide show
  1. videoclipper.py +1 -1
videoclipper.py CHANGED
@@ -79,7 +79,7 @@ class VideoClipper():
79
  video = mpy.VideoFileClip(vedio_filename)
80
  audio_file = vedio_filename[:-3] + 'wav'
81
  video.audio.write_audiofile(audio_file)
82
- wav = librosa.load(audio_file, 16000)[0]
83
  state = {
84
  'vedio_filename': vedio_filename,
85
  'clip_video_file': clip_video_file,
 
79
  video = mpy.VideoFileClip(vedio_filename)
80
  audio_file = vedio_filename[:-3] + 'wav'
81
  video.audio.write_audiofile(audio_file)
82
+ wav = librosa.load(audio_file, sr=16000)[0]
83
  state = {
84
  'vedio_filename': vedio_filename,
85
  'clip_video_file': clip_video_file,