AVAudioRecorder normalizes volume

I have an application that records audio. I am wondering how I can increase my winnings. is there a way to normalize the sound or amplify it somehow?

thanks howie

+4
source share
2 answers

Looks like I found a solution. According to the documentation, the volume of AVAudioPlayer can be between 0.0 and 1.0. Apparently, it can be set to a value greater than 1.0. By increasing the volume, I was able to achieve the same desired result. Until it normalizes, the gain increases.

+3
source
#import <AudioToolbox/AudioServices.h> UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute, sizeof (audioRouteOverride),&audioRouteOverride); 

It will play your sound in speaker mode.

+1
source

Source: https://habr.com/ru/post/1310684/


All Articles