Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVAudioRecorder metering #285

Open
kajensen opened this issue Feb 24, 2016 · 1 comment
Open

AVAudioRecorder metering #285

kajensen opened this issue Feb 24, 2016 · 1 comment

Comments

@kajensen
Copy link

Is there a way to use this library to get the meter (really want [mic averagePowerForChannel:0]) of the microphone input?

@dxclancy
Copy link

Hi, I know very little about audio, or this library.

Here is how I am achieving it. I don't know if it is dumb or if there is an easier way, etc...

What I do is i use EZAudioFFT. You can take a look at the sample app that is provided. Essentially, you feed the delegate data from the player or microphone to the FFT. From the FFT delegate you can get
float maxFrequencyMagnitude = [fft maxFrequencyMagnitude];
This may be enough to achieve what you want. Again, it may be overkill or the wrong approach, but it is feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants