From: Charles W F. <cha...@sh...> - 2014-06-30 17:48:11
|
While I'm here though, here's a simple version of my other problem: Here, a.wav is a 16k, 16bit file, and the output should be in the same 16x16 format: sox -m -v 1 -t sox "|sox a.wav -p pad 0s trim 0 5s" -v 0.5 -t sox "|sox a.wav -p pad 1s trim 0 5s" out.wav My problem is that the only way I know to make the pipes work is to use "-t sox", (-p gives errors), and this is forcing a conversion to 32bit. Anyone know how to have 16bits pipe all the way through this, whilst still allowing the trim and pad to work ? Somehow I think I need to tell the subprocesses to output in that format, and also have it picked up by the outer process? charles |