unofficial mirror
 help / color / Atom feed
From: "Måns Rullgård" <>
To: "David H. Durgee via Sox-users" <>
Subject: Re: SoX syntax for trim with piped output
Date: Tue, 12 May 2020 10:59:45 +0100
Message-ID: <> (raw)
In-Reply-To: <> (David H. Durgee via Sox-users's message of "Mon, 11 May 2020 18:34:19 -0400")

"David H. Durgee via Sox-users" <>

> 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.

Måns Rullgård

Sox-users mailing list

  reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2020-05-11 22:34 ` David H. Durgee via Sox-users
2020-05-12  9:59   ` Måns Rullgård [this message]
2020-05-12 18:46     ` David H. Durgee via Sox-users

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link unofficial mirror

Archives are clonable: git clone --mirror

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor:

AGPL code for this site: git clone