sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
* My generated file that should be silent instead has tone
@ 2017-10-24 17:41 David P
  2017-10-24 18:44 ` Jeremy Nicoll - ml sox users
  0 siblings, 1 reply; 3+ messages in thread
From: David P @ 2017-10-24 17:41 UTC (permalink / raw)
  To: sox-users

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

I would like to generate files of silence of specific durations, all at
16+kHz, 16bit wide, and single channel. After reading http://sox.
sourceforge.net/sox.html I believe the following command should do that,
but instead it produces a tone:

sox --null --rate 16k --bits 16 --channels 1
"C:/Users/me/Desktop/silent19secs.wav"
synth trim 0.0 19.907625

Please tell me how to adjust this command.

Cheers,
David

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

<div dir="ltr"><span style="font-size:12.8px">I would like to generate files of silence of specific durations, all at 16+kHz, 16bit wide, and single channel. After reading </span><a href="http://sox.sourceforge.net/sox.html" target="_blank" style="font-size:12.8px">http://sox.<wbr>sourceforge.net/sox.html</a><span style="font-size:12.8px"> I believe the following command should do that, but instead it produces a tone:</span><div style="font-size:12.8px"><br><div>sox --null --rate 16k --bits 16 --channels 1 &quot;C:/Users/me/Desktop/<wbr>silent19secs.wav&quot; synth trim 0.0 19.907625<br></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Please tell me how to adjust this command.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Cheers,</div><div style="font-size:12.8px">David</div></div>

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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: My generated file that should be silent instead has tone
  2017-10-24 17:41 My generated file that should be silent instead has tone David P
@ 2017-10-24 18:44 ` Jeremy Nicoll - ml sox users
  0 siblings, 0 replies; 3+ messages in thread
From: Jeremy Nicoll - ml sox users @ 2017-10-24 18:44 UTC (permalink / raw)
  To: sox-users

On 2017-10-24 18:41, David P wrote:
> I would like to generate files of silence of specific durations, all at
> 16+kHz, 16bit wide, and single channel. After reading http://sox.
> sourceforge.net/sox.html I believe the following command should do 
> that,
> but instead it produces a tone:
> 
> sox --null --rate 16k --bits 16 --channels 1
> "C:/Users/me/Desktop/silent19secs.wav"
> synth trim 0.0 19.907625
> 
> Please tell me how to adjust this command.

The whole purpose of the 'synth' effect is to generate tones.  Although
you didn't specify any parameters for that effect, it has defaults, so
will have done something.

I don't know why you put 'synth' there.  The --null    (sort of dummy
input file) is described as infinite silence, so I would have thought
that

sox --null --rate 16k --bits 16 --channels 1
   "C:/Users/me/Desktop/silent19secs.wav" trim 0 19

might work.


-- 
Jeremy Nicoll - my opinions are my own

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: My generated file that should be silent instead has tone
@ 2017-10-24 22:20 David P
  0 siblings, 0 replies; 3+ messages in thread
From: David P @ 2017-10-24 22:20 UTC (permalink / raw)
  To: sox-users

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

Removing 'synth' fixed my issue. (I had copied that portion from
documentation when I last worked on this code a year ago, and have
forgotten its purpose.)

Thank you, Jeremy.

David

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

<div dir="ltr">Removing &#39;synth&#39; fixed my issue. (I had copied that portion from documentation when I last worked on this code a year ago, and have forgotten its purpose.)<div><br></div><div>Thank you, Jeremy.<div><br></div><div>David<div class="gmail_extra"><br></div></div></div></div>

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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-24 17:41 My generated file that should be silent instead has tone David P
2017-10-24 18:44 ` Jeremy Nicoll - ml sox users
2017-10-24 22:20 David P

sox-users@lists.sourceforge.net unofficial mirror

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

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