File size: 336 Bytes
1a4b133 8aa90ee 1a4b133 8aa90ee 1a4b133 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from API import aud2text, Summarize
from moviepy.editor import *
def vid2aud(video_file):
video = VideoFileClip(video_file)
video.audio.write_audiofile("converted_Audio.mp3")
return "converted_Audio.mp3"
def Vid2Sum(vid_file):
audio = vid2aud(vid_file)
text = aud2text(audio)
print(Summarize(text["text"]))
|