8
$\begingroup$

I took some recordings with small microphone tags and observed this type of 'clipping' where only half of the waveform appears to be clipped, while the other remains intact.

Audio clipping (but only upper half of the waveform

Does anybody have any idea of what could possibly cause this? Unfortunately I am unable to obtain manufacturer specifications at the moment. The spectrograms look perfect and the audio quality in playbacks appears to be fine as well.

$\endgroup$
2
  • 2
    $\begingroup$ Are you sure they are actually clipped? The y axis on your plot is -30,000 to +20,000, if you extend it to +30,000 will it show the remainder of the wave? Maybe the limits are set based on the recording, but if not and they are just defaults...? $\endgroup$
    – EcologyTom
    Jul 14, 2022 at 10:15
  • 2
    $\begingroup$ Thanks for your answer, but no they are certainly clipped at the top range. If it's extended it shows the same. $\endgroup$
    – cebola
    Jul 14, 2022 at 11:19

3 Answers 3

10
$\begingroup$

It could be caused by DC (direct current) offset. This happens when the signal "idle" value is shifted from the normal zero value during the recording.

The picture below is an example of DC offset. You can see that most of the signal is above the zero value. When the signal is digitized to 16-bit signed integer samples all values above the maximum 32767 (the red part) are clipped.

enter image description here

Later when the DC offset is corrected the signal could look like yours:

enter image description here

The offset does not necessarily need to be constant (zero frequency) it could be a very low frequency e.g. caused by wind like Thejasvi pointed out. You can check this if you see longer run of the signal (over several seconds). With the low frequency overload of the signal the clipping value would not be constant. Alternatively the "idle" value of the signal would fluctuate around the zero if the signal still contains strong low frequency components.

During usual audio recording a high pass filter is applied to block very low frequencies including the DC offset. This filter could be missing or faulty in your circuits.

As a temporary workaround you can lower the gain during your recording. This will of course make the SNR and dynamic range lower.

As Dan Stowell pointed out a physical obstruction of the microphone's membrane could be another reason for similar clipping.

Detailed examination of the signal (zoom around the clipping values) should allow you to distinguish the two. Value clipping (caused by DC offset) should show the maxima always at the (almost) same value. A physical obstruction in the microphone should probably allow some variance among the maximum values.

$\endgroup$
2
  • $\begingroup$ Thanks for the detailed answer and the explanation for how to examine the signals to see what the issue is! $\endgroup$
    – cebola
    Jul 14, 2022 at 15:01
  • 1
    $\begingroup$ I would concur, The most likely reason for onesided clipping is DC offset in analog data. $\endgroup$
    – WMXZ
    Jul 14, 2022 at 15:25
5
$\begingroup$

It could be a physical defect or obstruction in the capsule, that prevents the transducer element from moving all the way to its full extent.

It's surprising that you say the audio quality appears to be fine - the imperfection should certainly be audible. With one-sided clipping like that, there should be audible artefacts with odd-numbered harmonics, and these would typically sound quite different to the animal sound. Are the artefacts also visible on a spectrogram? Perhaps the artefacts are mainly occurring in the higher frequency bands, making them less perceptible to you.

$\endgroup$
1
  • $\begingroup$ Thanks for your answer. I saw no visible artefacts at all, and are not visible on a spectrogram. It looks completely normal, and you would not notice any issues were you not to examine the waveform. $\endgroup$
    – cebola
    Jul 14, 2022 at 11:20
5
$\begingroup$

There may be a light breeze blowing by the mic? This may appear as a low frequency oscillation that only 'adds' to the positive part of the waveform and thus clipping it.

Because of the low frequency content your player may not be able to play it properly, even if so, you may not be able any tell any major differences in the audio too.

You may be able to simulate this kind of clipping by adding a low frequency sinusoid (< 10 Hz) to an audio snippet that is smaller than one cycle of the low frequency sound.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.