Spaces:
Runtime error
Runtime error
Suparnpreet
commited on
Commit
•
476beb1
1
Parent(s):
00f831f
Update audioex.py
Browse files- audioex.py +3 -3
audioex.py
CHANGED
@@ -13,12 +13,12 @@ def ex():
|
|
13 |
print(mp4_file_path)
|
14 |
os.rename(mp4_file_path, "video.mp4")
|
15 |
print("Command started")
|
16 |
-
result = subprocess.run("sudo apt install ffmpeg", capture_output=True, text=True, check=True)
|
17 |
print("Command Output of ffmpeg:\n", result.stdout)
|
18 |
command2mp3 = "ffmpeg -i video.mp4 speech.mp3"
|
19 |
-
result1 = subprocess.run(command2mp3, capture_output=True, text=True, check=True)
|
20 |
print("Command Output of mp3:\n", result1.stdout)
|
21 |
command2wav = "ffmpeg -i speech.mp3 speech.wav"
|
22 |
-
result2 = subprocess.run(command2wav, capture_output=True, text=True, check=True)
|
23 |
print("Command Output of wav:\n", result2.stdout)
|
24 |
print("Command ended")
|
|
|
13 |
print(mp4_file_path)
|
14 |
os.rename(mp4_file_path, "video.mp4")
|
15 |
print("Command started")
|
16 |
+
result = subprocess.run("sudo apt install ffmpeg", capture_output=True, text=True, check=True, shell=True)
|
17 |
print("Command Output of ffmpeg:\n", result.stdout)
|
18 |
command2mp3 = "ffmpeg -i video.mp4 speech.mp3"
|
19 |
+
result1 = subprocess.run(command2mp3, capture_output=True, text=True, check=True, shell=True)
|
20 |
print("Command Output of mp3:\n", result1.stdout)
|
21 |
command2wav = "ffmpeg -i speech.mp3 speech.wav"
|
22 |
+
result2 = subprocess.run(command2wav, capture_output=True, text=True, check=True, shell=True)
|
23 |
print("Command Output of wav:\n", result2.stdout)
|
24 |
print("Command ended")
|