Spaces:
Runtime error
Runtime error
| 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) |