IPhone AVAudioRecorder, AudioQueueServices, how to automatically record sound when sound is detected

I use AVAudioRecorder and AudioQueueServices to record the sound from the iphone microphone, but I want to automatically record the sound after it is detected, so there is no need to press the record button

I looked at the AVFoundation tutorial: www.iphoneam.com/blog/index.php?title=using-the-iphone-to-record-audio-a-guide&more=1&c=1&tb=1&pb=1 as well as the tutorial that explains as the iphone microphone can detect sound levels, I tried to add two tutorials together, but I can not get the code to work at all

I can’t understand what to do, and I’m not sure that I am wrong.

Any tips?

thanks

+4
source share
1 answer

Check out this tutorial: http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/

I have something similar using the above tutorial. I have one AVAudioRecorder that controls the microphone volume, and the other one records the microphone input when a certain threshold is reached.

+3
source

All Articles