Skip to content

Commit

Permalink
Make sox options more homogenous
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jul 10, 2017
1 parent 51fdfe3 commit 9301376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion audiohealth.py
Expand Up @@ -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)
Expand Down

0 comments on commit 9301376

Please sign in to comment.