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.7 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 594AB1F463 for ; Wed, 25 Dec 2019 21:50:42 +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 1ikEY4-000624-ON; Wed, 25 Dec 2019 21:50:32 +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 1ikEY1-00061w-QA for sox-users@lists.sourceforge.net; Wed, 25 Dec 2019 21:50:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: 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=iQbE4OharyxGb9MQcxoaKOks4Qwga+sphg+PdayUx7s=; b=jWOu/sWdY3mxAmFVhYYf9VcFyU 3HkUvK9vQS1oBiWAp8nmUfIUPM0GL0CHzWR7VE21QVseN2uoex60TE/6KdMLfxxmpewOXCV/BykaR f1IGS3ZPKGHJui0rKEIQF/ync4wM8vEYljQ93wbseMzYOhgcg7vuldrXcfM8KTOmipkg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: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=iQbE4OharyxGb9MQcxoaKOks4Qwga+sphg+PdayUx7s=; b=lf4hJEQEiaAxd7fs81W4rPBb7X I7d4cXfe3ivknxxZYYRrwnz9cgfteyANfytq3juKNq6CibjW5nLc/yw5heoEcvN9bBFwUMipHSnmw voKM3j9wBtNDbnfB6IYI7mEZd6zB88YIvJvLjUNNAZhPy9R8wI8N89u6H1GLbn1Yi2OE=; Received: from ns.stare.cz ([79.98.77.229] helo=mx.stare.cz) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1ikEXz-00FHVz-1r for sox-users@lists.sourceforge.net; Wed, 25 Dec 2019 21:50:29 +0000 Received: from www.stare.cz (localhost [127.0.0.1]) by www.stare.cz (OpenSMTPD) with ESMTP id 4cb0a90b for ; Wed, 25 Dec 2019 22:23:35 +0100 (CET) Date: Wed, 25 Dec 2019 22:23:34 +0100 From: Jan Stary To: sox-users@lists.sourceforge.net Message-ID: <20191225212334.GA64006@www.stare.cz> Mail-Followup-To: sox-users@lists.sourceforge.net References: <87d93d9e13fb4fe46d7ecd8f74e3876a@wingsandbeaks.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-Headers-End: 1ikEXz-00FHVz-1r Subject: Re: Duration of recorded file is longer than recording time using SoX 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 > > > > I'm using SoX on Centos 7 to record the audio output from GQRX, a S= DR > > > > application. I've selected Monitor of Built-in Audio Analog Stereo > > > > from the Recording Tab of the Pulseaudio Volume Control. I'm > > > > trying to > > > > save a .wav file with a sample rate of 6k. I'm using the command > > > > = > > > > |sox -t pulseaudio 2 --rate 6k --channels 1 test.wav | > > > Does the presence of the 'pipe' character before "sox" mean that audio > > > was being generated by a previous command? > > The command is run by itself- the pipe characters are a consequence of > > copying and pasting that I didn't catch. OK, sou you start sox -t pulseaudio 2 --rate 6k --channels 1 test.wav at a terminal, and then start GQRX (whatever that is) to produce its output, and have PulseAudio (the system audio framwork) monitor the GQRX output as a recording. So that's what SoX gets. Right? But that is not a valid SoX command line. In SoX SYNOPSIS parlance, what is the "infile"? And what is "pulseaudio 2"? The "-t pulseaudio" specifies the type (-t); what is the "2"? Can you please post the output of your actual command line with sox -V3 (for verbosity)? Also, a command line like that will not stop recording its input just because the other side has stopped producing output (as opposed to reading a file as input). So how exactly is the above SoX process terminated? > > > In your "too long" wave file, does it start with 1h 6m of something > > > else, or end with 1h 6m of something else?=A0 Or what? > > = > > The wave file contains what was recorded, nothing extra. It is > > 'stretched' to the longer duration. How can it "contain what was recorded, nothing extra" and at the same time be of different length? Is it the rate change? That is, are you recording a 6kHz channel at the specified rate of 6kHz? Jan _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users