sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Nils Wallgren <affarer@hotmail.com>
To: "sox-users@lists.sourceforge.net" <sox-users@lists.sourceforge.net>
Subject: Re: basic help with SoX on windows 10
Date: Wed, 30 Oct 2019 14:42:24 +0000
Message-ID: <AM0PR01MB5715FC5508ADB39CDFA9F757AA600@AM0PR01MB5715.eurprd01.prod.exchangelabs.com> (raw)
In-Reply-To: <78b7647b8dbe43d642bbc439f59c0d8f@wingsandbeaks.org.uk>

[-- Attachment #1.1: Type: text/plain, Size: 5147 bytes --]



>I'm wondering were you got sox from, and in what form.  When I >installed there was a choice of an installer, or a zip.  I chose the latter
>because when I unzipped it, I could see what the various files it contained
>were, read the relevant notes and do what they said.  Maybe, with an
>installer,
>it's not that obvious?

I downloaded it from sourceforge. Originally choose the sox 14.4.2-win32.exe which is  an installer.
I tried the the sox-14-4-2-win32.zip but this I hade to drag to my program files (x86) myself. I also had to a path so that my command prompt recognises the sox.
When I evalutate sox I get:
SoX v14.4.2
Sox FAIL sox: Not enough input filenames specified
Usage summary: [gopts]  ...
And bunch of other things that looks lika a manual

I tried sox -t waveaudio -d "C:\Users\xx\Documents\bla.wav"
And at least it created a file :
I also tried(after I created a copy of the sox.exe and named it rec.exe, another copy play.exe and another soxi.exe):

rec new-file.wav  ( an example taken from page 3 from the manual)

But this doesn’t create any file.

Also tried this : play -n -c1 synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 from from the manual but no luck

>What you should have got was a summary of the call syntax for sox.
>I expect you got it because you didn't specify any, or the right
>combination of, parameters after the sox command itself.

What I get after pressing enter on a line I get a call syntax
Which is the same for just typing sox (and play rec, soxi is a bit different it seems).
It seems that I am doing something wrong but I really try to do as the manual says but I don’t get it right.

Thanks for your patience


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

________________________________
From: Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk>
Sent: Tuesday, October 29, 2019 11:44:03 PM
To: sox-users@lists.sourceforge.net <sox-users@lists.sourceforge.net>
Subject: Re: [SoX-users] basic help with SoX on windows 10

On 2019-10-29 13:30, Nils Wallgren wrote:
> Thanks for the reply!
>
>> Most intructions seems to be on Os  and it is quite hard to find
>
> I meant for macOS, sorry
>
> Scrolling through the manual but It still seems that I cannot use the
> normal rec
> I cant just write rec but have to use sox -t waveaudio .. (as you
> suggested. Same thing with play.
> Tried this in the command prompt: play SC_191028_105931.aiff and get
> the message
>
>> 'play' is not recognized as an internal or external command,
> operable program or batch file.

I'm wondering were you got sox from, and in what form.  When I installed
it
there was a choice of an installer, or a zip.  I chose the latter
because
when I unzipped it, I could see what the various files it contained
were,
read the relevant notes and do what they said.  Maybe, with an
installer,
it's not that obvious?


In my notes on how I installed sox here, it says that in a file named
README.win32.txt  the text said that if one wants to have the "play" and
"rec" commands work, once has simply to make copies of the sox.exe file
named play.exe and rec.exe.

That means that when you issue a 'play' command for example the program
that runs is identical to what would run if you issued a 'sox' command,
but I expect the program code looks at the command used to run itself,
and thus sees if you invoked the 'play' or 'sox' or 'rec' one.


I had completely forgotten that the same is true if you want "soxi" to
work - you need to copy "sox.exe" as "soxi.exe".   That's certainly
worth doing because running soxi against an audio file will tell you
about what's actually in the file.


Certainly a response like "'play' is not recognized as an internal
or external command, operable program or batch file."  means that
there's no "play.exe" (or play.bat or various other possibilities)
in any of the folders defined on 'PATH' in your system.  It sounds
to me as if you've not got sox 'installed' properly.


> When I write sox in the prompt I get a lot of information but this
> kind of line stood out:

>> sox FAIL sox: Not enough input filenames specified

What you should have got was a summary of the call syntax for sox.
I expect you got it because you didn't specify any, or the right
combination of, parameters after the sox command itself.


You need to look at the examples in the manual.


Sox won't start a gui-based dialog with you, nor will it make the
command window go into "sox mode" and then expect a series of sox
subcommands.  You provide ALL the filenames and other parameters
on one long command line, then sox does all of what you asked for,
then it stops.

Some of the examples in the manual are quite complicated, with many
separate steps in them, but you don't need to try to be clever right
at the start.




--
Jeremy Nicoll - my opinions are my own


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

[-- Attachment #1.2: Type: text/html, Size: 9357 bytes --]

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang="en-SE" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">&gt;</span><span lang="en-SE">I'm wondering were you got sox from, and in what form.&nbsp; When I &gt;installed there was a choice of an installer, or a zip.&nbsp; I chose the latter
<br>
&gt;because when I unzipped it, I could see what the various files it contained <br>
&gt;were, read the relevant notes and do what they said.&nbsp; Maybe, with an <br>
&gt;installer,<br>
&gt;it's not that obvious?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">I downloaded it from sourceforge. Originally choose the sox 14.4.2-win32.exe which is&nbsp; an installer.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">I tried the the sox-14-4-2-win32.zip but this I hade to drag to my program files (x86) myself. I also had to a path so that my command prompt recognises the sox.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">When I evalutate sox I get:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">SoX v14.4.2 <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">Sox FAIL sox: Not enough input filenames specified<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">Usage summary: [gopts] &nbsp;...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">And bunch of other things that looks lika a manual<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">I tried sox -t waveaudio -d &quot;C:\Users\xx\Documents\bla.wav&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">And at least it created a file :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">I also tried(after I created a copy of the sox.exe and named it rec.exe, another copy play.exe and another soxi.exe):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">rec new-file.wav &nbsp;( an example taken from page 3 from the manual)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">But this doesn’t create any file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">Also tried this : play -n -c1 synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1 from from the manual but no luck<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">&gt;What you should have got was a summary of the call syntax for sox.<br>
&gt;I expect you got it because you didn't specify any, or the right<br>
&gt;combination of, parameters after the sox command itself.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">What I get after pressing enter on a line I get a call syntax<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">Which is the same for just typing sox (and play rec, soxi is a bit different it seems).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">It seems that I am doing something wrong but I really try to do as the manual says but I don’t get it right.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-SE"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="en-SE">Thanks for your patience<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows 10</p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jeremy Nicoll - ml sox users &lt;jn.ml.sxu.88@wingsandbeaks.org.uk&gt;<br>
<b>Sent:</b> Tuesday, October 29, 2019 11:44:03 PM<br>
<b>To:</b> sox-users@lists.sourceforge.net &lt;sox-users@lists.sourceforge.net&gt;<br>
<b>Subject:</b> Re: [SoX-users] basic help with SoX on windows 10</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 2019-10-29 13:30, Nils Wallgren wrote:<br>
&gt; Thanks for the reply!<br>
&gt; <br>
&gt;&gt; Most intructions seems to be on Os&nbsp; and it is quite hard to find<br>
&gt; <br>
&gt; I meant for macOS, sorry<br>
&gt; <br>
&gt; Scrolling through the manual but It still seems that I cannot use the <br>
&gt; normal rec<br>
&gt; I cant just write rec but have to use sox -t waveaudio .. (as you<br>
&gt; suggested. Same thing with play.<br>
&gt; Tried this in the command prompt: play SC_191028_105931.aiff and get <br>
&gt; the message<br>
&gt; <br>
&gt;&gt; 'play' is not recognized as an internal or external command,<br>
&gt; operable program or batch file.<br>
<br>
I'm wondering were you got sox from, and in what form.&nbsp; When I installed <br>
it<br>
there was a choice of an installer, or a zip.&nbsp; I chose the latter <br>
because<br>
when I unzipped it, I could see what the various files it contained <br>
were,<br>
read the relevant notes and do what they said.&nbsp; Maybe, with an <br>
installer,<br>
it's not that obvious?<br>
<br>
<br>
In my notes on how I installed sox here, it says that in a file named<br>
README.win32.txt&nbsp; the text said that if one wants to have the &quot;play&quot; and<br>
&quot;rec&quot; commands work, once has simply to make copies of the sox.exe file<br>
named play.exe and rec.exe.<br>
<br>
That means that when you issue a 'play' command for example the program<br>
that runs is identical to what would run if you issued a 'sox' command,<br>
but I expect the program code looks at the command used to run itself,<br>
and thus sees if you invoked the 'play' or 'sox' or 'rec' one.<br>
<br>
<br>
I had completely forgotten that the same is true if you want &quot;soxi&quot; to<br>
work - you need to copy &quot;sox.exe&quot; as &quot;soxi.exe&quot;.&nbsp;&nbsp; That's certainly<br>
worth doing because running soxi against an audio file will tell you<br>
about what's actually in the file.<br>
<br>
<br>
Certainly a response like &quot;'play' is not recognized as an internal<br>
or external command, operable program or batch file.&quot;&nbsp; means that<br>
there's no &quot;play.exe&quot; (or play.bat or various other possibilities)<br>
in any of the folders defined on 'PATH' in your system.&nbsp; It sounds<br>
to me as if you've not got sox 'installed' properly.<br>
<br>
<br>
&gt; When I write sox in the prompt I get a lot of information but this<br>
&gt; kind of line stood out:<br>
<br>
&gt;&gt; sox FAIL sox: Not enough input filenames specified<br>
<br>
What you should have got was a summary of the call syntax for sox.<br>
I expect you got it because you didn't specify any, or the right<br>
combination of, parameters after the sox command itself.<br>
<br>
<br>
You need to look at the examples in the manual.<br>
<br>
<br>
Sox won't start a gui-based dialog with you, nor will it make the<br>
command window go into &quot;sox mode&quot; and then expect a series of sox<br>
subcommands.&nbsp; You provide ALL the filenames and other parameters<br>
on one long command line, then sox does all of what you asked for,<br>
then it stops.<br>
<br>
Some of the examples in the manual are quite complicated, with many<br>
separate steps in them, but you don't need to try to be clever right<br>
at the start.<br>
<br>
<br>
<br>
<br>
-- <br>
Jeremy Nicoll - my opinions are my own<br>
<br>
<br>
_______________________________________________<br>
Sox-users mailing list<br>
Sox-users@lists.sourceforge.net<br>
<a href="https://lists.sourceforge.net/lists/listinfo/sox-users">https://lists.sourceforge.net/lists/listinfo/sox-users</a><br>
</div>
</span></font></div>
</body>
</html>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply index

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29  8:56 Nils Wallgren
2019-10-29 12:36 ` Jeremy Nicoll - ml sox users
2019-10-29 13:30   ` Nils Wallgren
2019-10-29 22:44     ` Jeremy Nicoll - ml sox users
2019-10-30 14:42       ` Nils Wallgren [this message]
2019-10-30 19:18         ` Jeremy Nicoll - ml sox users
2019-10-31 13:09           ` Jeremy Nicoll - ml sox users

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR01MB5715FC5508ADB39CDFA9F757AA600@AM0PR01MB5715.eurprd01.prod.exchangelabs.com \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git