(iphone, objc) unexpected results from (fft/other spectral analysis) if user taps iphone during recording
I am currently using FFT / other spectral analysis algorithms in order to analyse sound from the iphone's
microphone. However, if the user开发者_Go百科 taps the device while recording, I get unexpected results. Is there a
filter I can implement on the raw sound data to remove the tap disturbances.
Thank You,
nonono
edit: perhaps something to do with accelerometer data
Sound from tapping on something containing a microphone would seem to be completely expected.
If you aren't interested in an analysis of the expected tap sounds, you could always completely stop analyzing audio if the accelerometer indicates any motion above some tiny threshold, and start analyzing again a second or two after all acceleration stops.
If you need to tap on the UI while not interfering with some other audio, a microphone on an isolating stand plugged into the headset jack might help.
精彩评论