From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 3AF611F55B for ; Tue, 12 May 2020 10:00:23 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jYRht-0000Hs-2r; Tue, 12 May 2020 10:00:13 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYRhr-0000Hg-RK for sox-users@lists.sourceforge.net; Tue, 12 May 2020 10:00:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SeLAuVfGT7wje3BVfjAglullA+StBoeoE6WG+MlYYxs=; b=Scf3zbzIv6DqP/u2E687GkrkZJ M7YqnqADPzky1DZmT14hjkU853z2ahg6kK2MjDshbnns4X9Z7Z3xlfTdHaDX/lzlB+Iaep2F3gsOB iiEm04cQPlqLdD87ujdopxNPFS7A2jIlLyEdzSdThXFbi1pz5B3aQdit+215kqkkCNhM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SeLAuVfGT7wje3BVfjAglullA+StBoeoE6WG+MlYYxs=; b=JFtPuOvJdJ2QGbqv1DwNopFF/s AUVvCFQxYDwLLQkq6k5ZDSGCH/eM+4EHFJUF83Owqsswk+rbts4oXOpjxnMfMyouABd2Po3yiCMGG eaAjmYTfR1RvB1snTrC8BUZ+j2f5PgozrQP2S/SsHg52nTyTT+99xQhZlb/PFGmV6hLk=; Received: from [81.2.72.234] (helo=unicorn.mansr.com) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jYRhp-002utK-Hn for sox-users@lists.sourceforge.net; Tue, 12 May 2020 10:00:11 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 0E4E615360; Tue, 12 May 2020 10:59:46 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: "David H. Durgee via Sox-users" References: Date: Tue, 12 May 2020 10:59:45 +0100 In-Reply-To: (David H. Durgee via Sox-users's message of "Mon, 11 May 2020 18:34:19 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1jYRhp-002utK-Hn Subject: Re: SoX syntax for trim with piped output X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net "David H. Durgee via Sox-users" 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.=A0 > 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.=A0 What is the appropriate place for > me to put trim $offset in this command line?=A0 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=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users