|
From: kevin p. <kp...@me...> - 2010-03-28 15:07:05
|
To answer my own question, i was thrown off by the format below. You can also do it just as you would with the os module. Just specify the whole sucker on one line with call method as so:
subprocess.call('sox -V3 -D -S in.aif -b16 out-01.aif rate -s -v 44100', shell=True)
with the shell=True at the end... seems to to work fine.
Now I just need to plug this into os.walk and figure out a safe auto naming scheme and should be able to batch from within python. I'll also have to log to see if there is any clipping or other errors.
cheers,
-k
On Mar 28, 2010, at 11:42 PM, kevin parks wrote:
>>
>> import subprocess
>> retcode = subprocess.call(["sox", "arg1", "arg2", "arg3", "arg4"])
>>
>> That's it.
>
>
> Then how do you specify flags and effects? sox has more than just arguments to specify.
>
>
>
>
|