From 9301376cfbc2448e9c935604b23164e6fbb4610d Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 11 Jul 2017 01:12:06 +0200 Subject: [PATCH] Make sox options more homogenous --- audiohealth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audiohealth.py b/audiohealth.py index d10a1c7..750902c 100644 --- a/audiohealth.py +++ b/audiohealth.py @@ -40,7 +40,8 @@ def resample(audiofile): print(cmd) sys.exit(2) - command = 'sox "{input}" "{output}" --norm=-3 {remix_option} gain -n sinc 30-3150 rate 6300'.format(input=audiofile, output=tmpfile.name, remix_option=remix_option) + command = 'sox "{input}" "{output}" {remix_option} norm -3 sinc 30-3150 rate 6300'.format(input=audiofile, output=tmpfile.name, remix_option=remix_option) + #print(command) cmd = shlex.split(command) try: status = subprocess.check_call(cmd)