control built in microphone volume in ios
I am implementing a VOIP application where I want to mute the microphone for some time. For your information, I don't want to stop processing outgoing audio.How can I achieve this?
NSError *error; [[AVAudioSession sharedInstance] setInputGain:0.0f error:&error];
- (BOOL)setInputGain:(float)gain error:(NSError * _Nullable *)outError Changes the input gain to the specified value.