From: Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk>
To: sox-users@lists.sourceforge.net
Subject: Re: My generated file that should be silent instead has tone
Date: Tue, 24 Oct 2017 19:44:43 +0100 [thread overview]
Message-ID: <d7868c0b0ef19261de7eeb7c101b3d86@wingsandbeaks.org.uk> (raw)
In-Reply-To: <CAE23truz-DzW4RJ8bHDJsT+iwN-uSeGF-S_pRtDOGTWkOW3ETg@mail.gmail.com>
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
next prev parent reply other threads:[~2017-10-24 18:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-10-24 22:20 David P
Reply instructions:
You may reply publicly 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=d7868c0b0ef19261de7eeb7c101b3d86@wingsandbeaks.org.uk \
--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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).