Silence isn't silent?

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
roadriverrail
Posts: 4
Joined: Tue Mar 03, 2015 8:05 pm
Operating System: Please select

Silence isn't silent?

Post by roadriverrail » Tue Mar 03, 2015 8:35 pm

Hi there,

I'm using Audacity 2.0.5 (on Ubuntu 14.04 on a Mac) to generate test files for debugging some issues in audio hardware of mine, and I ran into something that doesn't make a lot of sense to me. Basically, the problem is this:

1) Create 16kHz project
2) Create new mono track
3) Select "Generate -> Silence" and make, say, 10s of silence
4) Export either as S16_LE wav or as S16_LE raw PCM
5) Load in hex editor

Expected: all samples will be 0x00
Observed: samples actually look more like: 00 00 00 00 00 00 FF FF 02 00 FE FF 02 00 FE FF 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 FE FF 03 00 FD FF 03 00 FD FF 03 00 FE FF 01

The end result is that, when played through my audio eqipment, the silence is not truly silent but has a faint hiss. A file consisting of nothing but 00 over and over again creates true silence.

I don't really understand why this is happening and how to mitigate it. If Audacity can't export silence, I don't know how I can trust any of the other test loads I'm generating (synthesized tones, etc).

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Silence isn't silent?

Post by kozikowski » Wed Mar 04, 2015 1:44 am

I'm guessing that's dither. Audacity is not a WAV editor. It's an audio production editor. It runs internally at 32-bit floating depth and converts to your desired format at the export step. In order to keep the bit level conversion errors from adding up or aligning and becoming audible, Audacity adds a tiny dither signal.

It sounds fine but it drives scientists crazy.

You can turn it off in Audacity > Preferences > Conversion, but if you generate actual test signals instead of silence, they may have significant bit depth errors.

Koz

roadriverrail
Posts: 4
Joined: Tue Mar 03, 2015 8:05 pm
Operating System: Please select

Re: Silence isn't silent?

Post by roadriverrail » Wed Mar 04, 2015 1:50 am

Thanks, Koz,

Thanks for the quick reply. While I was waiting for the topic to be approved, I found the dither setting and turned it off; this did have the effect I was looking for.

I'm basically having to become a bit of an audio engineer on the hoof, so I ended up reaching for Audacity because it's a really well-known name. Is there a better software package for Linux for generating clean test signals in raw PCM or WAV format?

Best,
Rhett

Twhite
Posts: 12
Joined: Tue Apr 14, 2015 4:34 pm
Operating System: Please select

Re: Silence isn't silent?

Post by Twhite » Tue Apr 14, 2015 6:11 pm

roadriverrail wrote:Is there a better software package for Linux for generating clean test signals in raw PCM or WAV format?
http://sox.sourceforge.net/
The on line manual for SOX is very detailed.

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Silence isn't silent?

Post by Robert J. H. » Wed Apr 15, 2015 6:21 pm

Twhite wrote:
roadriverrail wrote:Is there a better software package for Linux for generating clean test signals in raw PCM or WAV format?
http://sox.sourceforge.net/
The on line manual for SOX is very detailed.
In which regard should it be better than Audacity?
Audacity is a really good choice, especially if you familiarize yourself a bit with the powerful Nyquist language.
You can even save your files from the Nyquist prompt--without dithering-- or just display the sample values or whatever you want.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Silence isn't silent?

Post by steve » Wed Apr 15, 2015 8:07 pm

roadriverrail wrote: Is there a better software package for Linux for generating clean test signals in raw PCM or WAV format?
I'll go with "no". Audacity is just about perfect for generating test tones.

The question of whether or not to use dither depends on what you are trying to measure. This is not "an Audacity issue", this is a fact of digital audio. PCM audio has a finite resolution (about -90 dB for 16 bit PCM) and below that there is only quantization noise which may appear as harmonic distortion. Correctly dithered audio can extend the dynamic range by around 20 dB, allowing signals below the digital noise floor to be accurately reproduced and measured. When measuring low level harmonic distortion using a 16 bit PCM source signal, it is essential that the test signal is correctly dithered, otherwise your measurements are polluted by quantisation noise. Dither noise is predictable and can therefore be taken into account when analyzing the test results.

If you really want a "silent test signal", the best way is to short to ground the input of the equipment under test.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply