Spaces:
Runtime error
Runtime error
Update mastering.py
Browse files- mastering.py +1 -16
mastering.py
CHANGED
|
@@ -1,22 +1,7 @@
|
|
| 1 |
import subprocess
|
| 2 |
-
#input path of audio file
|
| 3 |
-
#inPath = "audioTracks/CinematicBoom.mp3"
|
| 4 |
-
|
| 5 |
-
#desired path of output
|
| 6 |
-
#outPath = "masteredAudio/CinematicBoomMastered.mp3"
|
| 7 |
-
|
| 8 |
-
# try:
|
| 9 |
-
# output = subprocess.check_output(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
|
| 10 |
-
# print(output.decode())
|
| 11 |
-
# except subprocess.CalledProcessError as e:
|
| 12 |
-
# print("Error running JavaScript file:", e)
|
| 13 |
-
|
| 14 |
|
| 15 |
def masterAudio(inputPath,outputPath):
|
| 16 |
try:
|
| 17 |
master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
|
| 18 |
except subprocess.CalledProcessError as err:
|
| 19 |
-
print("Error running Mastering Module: ", err)
|
| 20 |
-
|
| 21 |
-
# testing
|
| 22 |
-
# masterAudio(inputPath,outputPath)
|
|
|
|
| 1 |
import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def masterAudio(inputPath,outputPath):
|
| 4 |
try:
|
| 5 |
master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
|
| 6 |
except subprocess.CalledProcessError as err:
|
| 7 |
+
print("Error running Mastering Module: ", err)
|
|
|
|
|
|
|
|
|