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.6 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_H2,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 130EA1F66E for ; Fri, 21 Aug 2020 13:38:24 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k97FK-0001Ih-T3; Fri, 21 Aug 2020 13:38:18 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k97FK-0001IY-7r for sox-users@lists.sourceforge.net; Fri, 21 Aug 2020 13:38:18 +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=1o5wCY0zHAqoeRWHK97Nndnn21gb/0O4+KP/9XJM+UQ=; b=g+DDYckvKdzDJiO17qfWPuZCXh XPwvNq1+mQLOD7vtlCHXuF0dIvX2mDiSRLyyjO69INEVPUUKxzzHOu+dW/RnNQj7JZPRCj0IN28/z kKMNIZeXkxZIZAqLtSebg8/VQWMQT0Jx6d/JM+KoBA1HkALQ6DE9fKiqR96iB2IRBuX0=; 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=1o5wCY0zHAqoeRWHK97Nndnn21gb/0O4+KP/9XJM+UQ=; b=BqoSbdgXXxB3SVZ+zWuQTUL2RL ae6gbBDAb7Auw+9VMfHKDIQa5+A4s0QXQ5FxuWEvcpg5xH9eXg5XqAjoqAlpKitHLWhiT2DcgKFgM rRZ6p0E/I6UrGYldJFIzZ9Zb6IzhElOy7Q9zXT1mGnAuKOx5uvIvE25Yc1JNfFdORwCw=; Received: from [81.2.72.234] (helo=unicorn.mansr.com) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k97FG-00EVA9-Cm for sox-users@lists.sourceforge.net; Fri, 21 Aug 2020 13:38:18 +0000 Received: from raven.mansr.com (raven.mansr.com [IPv6:2001:8b0:ca0d:8d8e::3]) by unicorn.mansr.com (Postfix) with ESMTPS id 03A4515360; Fri, 21 Aug 2020 14:37:58 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id ECFA421A6F2; Fri, 21 Aug 2020 14:37:57 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Danijel DOMAZET References: Date: Fri, 21 Aug 2020 14:37:57 +0100 In-Reply-To: (Danijel DOMAZET's message of "Fri, 21 Aug 2020 14:33:24 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1k97FG-00EVA9-Cm Subject: Re: manualy setting output as for .s32 extension 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 Danijel DOMAZET writes: > Hi SoX users, > > This command works for me: > 1) sox --channels 1 --rate 48000 in_signal.wav in_signal.s32 > > Now, I'd like to change the output filename extension. In that case SoX > can't deduce the format from the extension, so I have to tell it the > details. I tried the following line: > 2) sox --bits 32 --channels 1 --encoding signed-integer --rate 48000 > in_signal.wav --type raw in_signal.q31 > > However, I am not getting the same output as using the first command. > > What's done wrong in the second command? You're options you've added apply to the input file, not the output, and probably don't do what you want. With a WAV input, you should not normally need to specify channel count or sample rate unless the file header is incorrect (it happens). All you need to do here is say --type s32 before the output file (instead of raw). -- = M=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users