iPhone SDK:在 AVAudioPlayer 中录音时它也会捕获背景 noise.Can 谁能帮我降低背景声音

iPhone SDK: While recording in AVAudioPlayer it is also capturing background noise.Can anyone help me to reduce the background sound

我们正在这样设置录音文件

NSDictionary *settings = @{AVEncoderAudioQualityKey: @(AVAudioQualityMedium),
                               AVFormatIDKey: @(kAudioFormatMPEG4AAC),
                               AVEncoderBitRateKey: @(128000),
                               AVNumberOfChannelsKey: @(1),
                               AVSampleRateKey: @(44100)};

这段代码对我有用。

audioSettings = [NSDictionary dictionaryWithObjectsAndKeys:
                     [NSNumber numberWithFloat:44100],AVSampleRateKey,
                     [NSNumber numberWithInt:kAudioFormatMPEG4AAC],AVFormatIDKey,
                     [NSNumber numberWithInt:1],AVNumberOfChannelsKey,
                     [NSNumber numberWithInt:AVAudioQualityMedium],AVEncoderAudioQualityKey,nil];


AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];


AVAudioRecorder *recorder = [[AVAudioRecorder alloc] initWithURL:tempUrl settings:audioSettings error:&error];
recorder.delegate = self;
recorder.meteringEnabled = YES;
[recorder prepareToRecord];
[recorder record];