rename stdin to pipeWriter.
separate sox functions to sox.go.