File size: 322 Bytes
91e6e4f
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from moviepy.editor import VideoFileClip
import pydub

def Downlaod_Audio(video_path):
  videofileclip=VideoFileClip(video_path)
  audio_file=videofileclip.audio
  audio_file.write_audiofile("audio.mp3")
  audio=pydub.AudioSegment.from_mp3("audio.mp3")
  files=audio.export("audio.wav",format='wav')
  return files.name