sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / 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 --]

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

[-- 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, other threads:[~2017-10-24 22:21 UTC | newest]

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
  -- strict thread matches above, loose matches on Subject: below --
2017-10-24 22:20 David P

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).