If you use AVAudioPlayer, you can use this method
AVAudioPlayer *avPlayer = ...
[avPlayer play...];
[avPlayer averagePowerForChannel:0];
[avPlayer averagePowerForChannel:1];
From Apple's doc
- (float)averagePowerForChannel:(NSUInteger)channelNumber
Description
Returns the average power for a given channel, in decibels, for the sound being played.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…