CODE

import moviepy.editor

video = moviepy.editor.VideoFileClip("C:\\abc.mp4")

audio = video.audio

audio.write_audiofile(C:\\abc.mp3)
Β 

NOTE:Β 

#Make sure to install the module before running the code

"pip install moviepy"

Write the above line in terminal. Your original video will not be affected, it will make a copy of the audio file and save it.