Liusuthu commited on
Commit
f076f86
·
verified ·
1 Parent(s): f7eace9

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +1 -1
app_utils.py CHANGED
@@ -401,7 +401,7 @@ def video_score(video):
401
 
402
  #trans the audio file
403
  my_audio_clip = AudioFileClip(video)
404
- my_audio_clip.write_audiofile("data/newaudio.wav")
405
 
406
  # Audio="data/audio.wav"
407
  # text,prob2,label,path=classify_continuous(Audio)
 
401
 
402
  #trans the audio file
403
  my_audio_clip = AudioFileClip(video)
404
+ my_audio_clip.write_audiofile("newaudio.wav",ffmpeg_params=["-ac","1"])
405
 
406
  # Audio="data/audio.wav"
407
  # text,prob2,label,path=classify_continuous(Audio)