Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

We've sent a verification link by email

Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

iphone5_strange_waveform_at_beginning-noisy.ogg

Overall rating (5 ratings)
S
soareschen

February 11th, 2013

Follow
Sound effects > Natural elements and explosions
iPhone 5 audio glitch

We develop iPhone app that perform musical analysis on recorded audio from the iPhone. Our app implementation make use of the Audio Queue service to receive raw audio buffers from the audio queue callback.

In the first version of our app we had the problem of too much clipping on the recording which degrade the accuracy of our analysis. We also suspected that the noise canceling algorithm in iPhone 5 produce distorted sound, which is not much noticeable by human ear but distorted enough to affect our sensitive algorithm.

We found that the solution to our problem is to set the audio session mode to kAudioSessionMode_Measurement. This session mode is supposed to give maximum freedom for us to control the microphone input, which include turning off the automatic gain control and probably noise canceling as well.

The solution works very well except that it introduce a strange waveform pattern in the beginning of all recordings in iPhone 5. It is very hard to explain the waveform we get, so I made two recordings at Freesound so that you can see it visually. The first recording is made in an almost quite environment, and you can see the weird spike in the beginning of the recording. The second recording (this recording) is made with constant background noise, and you can see that the actual sound wave is offset from the strange curve and gradually increase to its original volume.

This waveform only happens on iPhone 5 devices that we tested, and there is no problem at all for iPhone 4S and older generations. We have tried various settings and the glitch is still unavoidable as long as we set the audio session mode to kAudioSessionMode_Measurement. We also find similar glitch in one of our iPhone 5 devices, in which the glitch happens even if we try to set just the input gain level without changing the session mode.

We are not sure if this is a hardware-related bug in iPhone 5, or if it is fixable software glitch in the future version of iOS. For the moment we are looking for workaround that can avoid this glitch while automatic gain control and noise canceling are disabled.

Sound illegal or offensive? Flag it!
bug
core-audio
glitch
iphone
iphone5

Type

Ogg Vorbis (.ogg)

Duration

0:02.417

File size

69.0 KB

Sample rate

44100.0 Hz

Bitrate

233 kbps

Channels

Mono

Comments
Please log in to comment
J
johnthewizar

11 years, 2 months ago

Sounds like there is an issue with the microphone circuitry not being entirely separate from something else, could be a power spike from a capacitor connected to the cpu. You could try having the app always recording, and then only save the sections of the audio that are recorded when you hit the record button. This would probably eat the ram quickly, but whatever. That, or try putting a short delay before the recording so that things get a chance to level out before you start recording.

Though I could be wrong about all of these things, it really does look like a ground loop pop produced from something on the circuit turning on. Normally, I would just highpass things like this if they were on something I recorded.

  1. 103 downloads
  2. 1 comment
Creative Commons 0
You can copy, modify, distribute and perform the sound, even for commercial purposes, all without the need of asking permission to the author. Get attribution text...
Login to download
Share url:
920 x 245
Embed example, large size
481 x 86
Embed example, medium size
375 x 30
Embed example, small size
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2026 Universitat Pompeu Fabra