Spaces:
Runtime error
Runtime error
File size: 616 Bytes
0783097 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import subprocess
#input path of audio file
#inPath = "audioTracks/CinematicBoom.mp3"
#desired path of output
#outPath = "masteredAudio/CinematicBoomMastered.mp3"
# try:
# output = subprocess.check_output(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
# print(output.decode())
# except subprocess.CalledProcessError as e:
# print("Error running JavaScript file:", e)
def masterAudio(inputPath,outputPath):
master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
# testing
# masterAudio(inputPath,outputPath) |