Suparnpreet commited on
Commit
83c840b
·
verified ·
1 Parent(s): e9624b6

Update audioex.py

Browse files
Files changed (1) hide show
  1. audioex.py +2 -1
audioex.py CHANGED
@@ -10,7 +10,8 @@ def ex():
10
  mp4_file_path = os.path.join(video_directory, mp4_file)
11
  print(mp4_file_path)
12
  os.rename(mp4_file_path, "video.mp4")
13
- command2mp3 = f"ffmpeg -i video.mp4 speech.mp3"
 
14
  command2wav = "ffmpeg -i speech.mp3 speech.wav"
15
  subprocess.run(command2mp3, shell=True)
16
  subprocess.run(command2wav, shell=True)
 
10
  mp4_file_path = os.path.join(video_directory, mp4_file)
11
  print(mp4_file_path)
12
  os.rename(mp4_file_path, "video.mp4")
13
+ subprocess.run("sudo apt install ffmpeg", shell=True)
14
+ command2mp3 = "ffmpeg -i video.mp4 speech.mp3"
15
  command2wav = "ffmpeg -i speech.mp3 speech.wav"
16
  subprocess.run(command2mp3, shell=True)
17
  subprocess.run(command2wav, shell=True)