Re: SoX syntax for trim with piped output

"David H. Durgee via Sox-users" <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
I had tried that and received errors with the "--" present, but as you
note it works if I remove the "--" on the line.

Thank you for your assistance.

Dave

> Måns Rullgård wrote:  "David H. Durgee via Sox-users" <[email protected]>
> writes:
>
>> I am working on an application of SoX that I want to include a trim
>> effect but have been unable to figure out the syntax with this case. 
>> The command line (in a shell script) without the trim is:
>>
>> sox "$1" -t wav - -- | aplay
>>
>> I have tried adding trim $offset offset various places and get errors
>> for each, although the errors vary.  What is the appropriate place for
>> me to put trim $offset in this command line?  In case it matters this is
>> SoX v14.4.1 and it is a binary on a platform for which I cannot provide
>> an alternative version.
> The trim effect, like any other, goes after the output file.  In your
> command above, it should be where the "--" is.
>

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
smime.p7s (application/pkcs7-signature, 4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.