syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.94k stars 821 forks source link

How to avoid the microphone noise? #299

Open SamerPTUK opened 8 years ago

SamerPTUK commented 8 years ago

Hello I run the PassThrough project, there is noise when I do not use headphone, I would to remove or avoid this noise by the microphone properties or other way, How ? https://github.com/syedhali/EZAudio/blob/master/EZAudioExamples/iOS/PassThrough/PassThrough/ViewController.m

Thanks

phohale commented 8 years ago

The "noise" is the result of the physics of the situation. The microphone records the environment at time t. At time t+1, it plays the sound recorded at time t back through the passthrough out of the device speaker. Also at time t+1 the microphone records the environment which includes this passthrough sound. This problem amplifies as time keeps passing, a very quiet noise will eventually get louder and louder as it compounds.

The solution to this problem is well-researched and called "noise canceling": it involves removing any output noise from the microphone's input, but due to the distortion of the environment between the speaker and the mic it isn't perfect.

longpham2310 commented 7 years ago

Hi @SamerPTUK. I have the same issue. Have you got any solutions yet? Thanks!

ghost commented 2 years ago

Same problem here.