script.py 580 Bytes
Newer Older
CSC's avatar
CSC committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import subprocess

INPUT_DIR = "./"

config = {
    "file_names": os.listdir(INPUT_DIR),
    "w_eq_standard": "NAB",
    "r_eq_standard": "CCIR",
    "w_speed": "7.5",
    "r_speed": "7.5"
}

if __name__ == '__main__':
    for filename in config["file_names"]:
        if not os.path.exists(INPUT_DIR + "/temp"):
            os.makedirs(INPUT_DIR + "/temp")
        subprocess.run(["python3", "tapeAudioRestoration.py", "-w", INPUT_DIR, "-f", filename, "-ew", config["w_eq_standard"], "-sw", config["w_speed"], "-sr", config["r_speed"], "-er", config["r_eq_standard"]])