I am trying to create a audio meter level while I am recording the user voice using avaudiorecorder. Can someone help me in that regard?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, the code is pretty straightforward since AVAudioPlayer and AVAudioRecorder have built in methods to get you on your way. My approach was this:
-updateMetersand theaveragePowerForChannel:&peakPowerForChannel:methods and call a delegate method to notify the controlling objectExample:
and
If your View Controller implements the
meterLevelsDidUpdate:method, you can use this method to update your Level Meter.