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.6 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 69F571F4C0 for ; Thu, 31 Oct 2019 13:09:35 +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 1iQACd-0005H0-3F; Thu, 31 Oct 2019 13:09:27 +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 1iQACZ-0005GC-CE for sox-users@lists.sourceforge.net; Thu, 31 Oct 2019 13:09:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-ID:References:In-Reply-To:Subject:To:From: Date:Content-Transfer-Encoding:Content-Type:MIME-Version: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=ozJMUdm8l00c5RKjoeDF0slM3nFZ6qaqYAMSNb4RqhY=; b=e7+rdZ5e39MI9SqJFjEdDYppaE iKuCImlIh6ne+vXwYPJuIbElnxc5FeUE3z7Lm89FIsvBW7rtOlMMTi+sJe1XP2HbFkZkgJmpiC5kQ MB9fpUHiLKd8niX7hJDDMkbpfRfN+RA0TrI8rfzNJnR2rmOH2nVjlFekZNfxasH7Vc5c=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-ID:References:In-Reply-To:Subject:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version: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=ozJMUdm8l00c5RKjoeDF0slM3nFZ6qaqYAMSNb4RqhY=; b=m4bR1W/tq/fmtsuDBClTIM4KDg kOK7prgjWo2gITJUYzL09G12SjdCqulmIppl/6z9Uh8Yk5tIQiGdsitDsg4V/AlPjvrcxj/o+Z78e 7B5IhaGS42C5TeHHtXm/hEUHUBwcEc5735dCpRnDby4v+mbbm8w3n7csWiZjC++G9ric=; Received: from a-painless.mh.aa.net.uk ([81.187.30.51]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1iQACS-00AkQm-Vc for sox-users@lists.sourceforge.net; Thu, 31 Oct 2019 13:09:22 +0000 Received: from a-webmail.mh.aa.net.uk ([2001:8b0:0:30::75] helo=webmail.aa.net.uk) by a-painless.mh.aa.net.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iQACM-0003du-K0 for sox-users@lists.sourceforge.net; Thu, 31 Oct 2019 13:09:10 +0000 Received: from cpc132346-sgyl43-2-0-cust166.know.cable.virginm.net ([82.42.23.167]) by webmail.aa.net.uk with HTTP (HTTP/1.1 POST); Thu, 31 Oct 2019 13:09:03 +0000 MIME-Version: 1.0 Date: Thu, 31 Oct 2019 13:09:03 +0000 From: Jeremy Nicoll - ml sox users To: sox-users@lists.sourceforge.net In-Reply-To: References: , <4f2708c7903a9c20fc63e09fa416c3e3@wingsandbeaks.org.uk> , <78b7647b8dbe43d642bbc439f59c0d8f@wingsandbeaks.org.uk> Message-ID: <9bef1b4b815827440c627111d2073689@wingsandbeaks.org.uk> X-Sender: jn.ml.sxu.88@wingsandbeaks.org.uk User-Agent: Roundcube Webmail/1.3.8 X-Headers-End: 1iQACS-00AkQm-Vc Subject: Re: basic help with SoX on windows 10 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: sox-users-bounces@lists.sourceforge.net On 2019-10-30 19:18, Jeremy Nicoll - ml sox users wrote: > Hmm. If I try that I get: > > FAIL sox: Sorry, there is no default audio device configured > > and - depite trying this & that, and googling I've not been able to > make > it work. A few posts suggest that it might work on the earlier > version > of sox, v14-4-1. I've not tried. Running all sorts of commands, with > -V4 (verbose output) I just see things like: > > sox.exe DBUG sox: Looking for a default device: trying format > `waveaudio' > sox.exe DBUG waveaudio: waveOutOpen(QUERY: Dev -1 0Hz 0Ch 8Prec > 8Wide) returned 32 > sox.exe FAIL sox: Sorry, there is no default audio device configured Trying again today, I've found a command that works: play.exe -n -c1 -t waveaudio synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 It doesn't work with -t waveaudio 0 or -t waveaudio 1 or -t waveaudio -1 If I ask sox to be very verbose ( -V6 ) in the command that works, ie by play.exe -V6 -n -c1 -t waveaudio synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 some of the verbose output says: play.exe DBUG waveaudio: waveOutOpen(QUERY: Dev -1 48000Hz 1Ch 32Prec 32Wide) returned 0 play.exe INFO waveaudio: Using default output device at 48000Hz 1Ch 32Prec 32Wide. which is interesting because the "waveOutOpen(QUERY: Dev -1" part suggests that internally sox was able to find out what the 'default' device was by referring to device id -1, this time, but in stuff I did yesterday it kept showing sox.exe DBUG sox: Looking for a default device: trying format `waveaudio' sox.exe DBUG waveaudio: waveOutOpen(QUERY: Dev -1 0Hz 0Ch 8Prec 8Wide) returned 32 where the same device number didn't seem to work. I also found a way to make sox show me what devices it was considering when looking for a default waveaudio device. By telling it to show me lots of debugging output (with -V6) & asking for a named audio device that it won't find sox.exe -V6 -n -t waveaudio jfhgfgfjg some of the output contained: sox.exe DBUG waveaudio: Enumerating output device -1: "Microsoft Sound Mapper" sox.exe DBUG waveaudio: Enumerating output device 0: "Speakers (USB Audio CODEC )" sox.exe DBUG waveaudio: Enumerating output device 1: "Speakers (Realtek High Definiti" sox.exe FAIL formats: can't open output file `jfhgfgfjg': The requested WaveAudio device was not found. So... you'd think if it lists three named devices, one should be able to specify any of those by name? But I was not able to do that: C:\>play.exe -V6 -n -c1 -t waveaudio "Microsoft Sound Mapper" synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 play.exe DBUG sox: Looking for a default device: trying format `waveaudio' play.exe DBUG waveaudio: waveOutOpen(QUERY: Dev -1 0Hz 0Ch 8Prec 8Wide) returned 32 play.exe FAIL sox: Sorry, there is no default audio device configured C:\>play.exe -V6 -n -c1 -t waveaudio "Speakers (USB Audio CODEC )" synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 play.exe DBUG sox: Looking for a default device: trying format `waveaudio' play.exe DBUG waveaudio: waveOutOpen(QUERY: Dev -1 0Hz 0Ch 8Prec 8Wide) returned 32 play.exe FAIL sox: Sorry, there is no default audio device configured C:\>play.exe -V6 -n -c1 -t waveaudio "Speakers (Realtek High Definiti" synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 play.exe DBUG sox: Looking for a default device: trying format `waveaudio' play.exe DBUG waveaudio: waveOutOpen(QUERY: Dev -1 0Hz 0Ch 8Prec 8Wide) returned 32 play.exe FAIL sox: Sorry, there is no default audio device configured I also found in a MSDN programmers' info page: https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-sounddevice a way of listing audio devices on my pc. When I run something based on that I see three devices, but I don't see the names that sox was able to find. I see: 1) Caption: Realtek High Definition Audio Description: Realtek High Definition Audio DeviceID: HDAUDIO\FUNC_01&VEN_10EC&DEV_0269&SUBSYS_144DC0D8&REV_1002\4&1391229C&0&0001 Manufacturer: Realtek Name: Realtek High Definition Audio PNPDeviceID: HDAUDIO\FUNC_01&VEN_10EC&DEV_0269&SUBSYS_144DC0D8&REV_1002\4&1391229C&0&0001 Product Name: Realtek High Definition Audio Status: OK StatusInfo: 3 2) Caption: Intel(R) Display Audio Description: Intel(R) Display Audio DeviceID: HDAUDIO\FUNC_01&VEN_8086&DEV_2806&SUBSYS_144DC0D8&REV_1000\4&1391229C&0&0301 Manufacturer: Intel(R) Corporation Name: Intel(R) Display Audio PNPDeviceID: HDAUDIO\FUNC_01&VEN_8086&DEV_2806&SUBSYS_144DC0D8&REV_1000\4&1391229C&0&0301 Product Name: Intel(R) Display Audio Status: OK StatusInfo: 3 3) Caption: USB Audio Device Description: USB Audio Device DeviceID: USB\VID_08BB&PID_2902&MI_00\7&173E1977&1&0000 Manufacturer: (Generic USB Audio) Name: USB Audio Device PNPDeviceID: USB\VID_08BB&PID_2902&MI_00\7&173E1977&1&0000 Product Name: USB Audio Device Status: OK StatusInfo: 3 which is not helpful. For a start the device numbers -1, 0, 1 don't seem to correspond. When I use the Control Panel - Sound configuration options, it shows devices with names like "Realtek High Definition Audio", "USB Audio Device" etc which correspond to the ones in this list. But the names are not precisely the same as the enumerated names that sox showed when trying to make sense of jfhgfgfjg. -- Jeremy Nicoll - my opinions are my own _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users