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-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,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 D442B1F453 for ; Fri, 18 Jan 2019 13:19:48 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1gkU3h-00020N-7b; Fri, 18 Jan 2019 13:19:41 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gkU3g-00020E-38 for sox-users@lists.sourceforge.net; Fri, 18 Jan 2019 13:19:40 +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=HD1B0sy5jlLraQnnRY8KNjxIeWqHZqSJZ0w16j9L6M0=; b=FlYX4RTXP3x+8J2oACT/znKBHL mwo8sDJYnknNeUIPdZUKLi7kZsijrfrFEO07dr63mv9gjf9CtDCmYPIDGXGAMRG1rE23s8uC3ZRRZ 79RvCvE20pDjkWsVBcQTxFCdwMhZ/fSZUsFCFudWxIzeJjweptwLraVgAmmlbNyVRvfM=; 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=HD1B0sy5jlLraQnnRY8KNjxIeWqHZqSJZ0w16j9L6M0=; b=Iq3nuNsYfFpOV/ML3/lKuRSyu5 hTnOCAz9OWIAACHR1BH3uDr2DlRJnTevwegAkKKnuSdvgLgy2fPb6h16qx3fKA3dCm9NmWrFnUGno PNbJVIk/31XGGNVtSLNsHAUm/Gu+Cl90dAe0KB5rWLLpVMvCpwvgGGcT0s67gOWcFFzo=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1gkU3S-00BmAc-Ae for sox-users@lists.sourceforge.net; Fri, 18 Jan 2019 13:19:40 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 9F9E615637; Fri, 18 Jan 2019 12:54:35 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Toru Yagi References: <652273.73317.qm@web102218.mail.kks.yahoo.co.jp> Date: Fri, 18 Jan 2019 12:54:35 +0000 In-Reply-To: <652273.73317.qm@web102218.mail.kks.yahoo.co.jp> (Toru Yagi's message of "Thu, 17 Jan 2019 22:41:39 +0900 (JST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1gkU3S-00BmAc-Ae Subject: Re: sox can't encode to 16-bit 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 Cc: "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 Toru Yagi writes: > Hi all, = > > I'm trying to record by sox, splitting the input to multiple files: = > > $ sox --version = > sox:=A0=A0=A0=A0=A0 SoX v14.4.1 = > > $ rec -c 2 -b 16 -r 48000 -p trim 0 20 | = > sox -V3 -c 2 -b 16 -r 48000 -p test.wav trim 0 10 : newfile : restart = > > I want to record 16-bit wav files, but the files generated are 32-bit one= s. = Put the "-b 16" option immediately before the output file argument. You can also drop all the format options preceding the -p since the pipe format already includes all information. That said, why don't you do the splitting directly with the rec command? This should work: $ rec -c 2 -b 16 -r 48000 test.wav trim 0 10 : newfile : restart -- = M=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users