Avaudiorecorder distorts the sound when playing after recording

I used avaudiorecoder to record user voice. he records it, but when I play, the sound is cracking. any help on this subject would be appreciated ..... following the settings code of my recorder.

NSDictionary *recordSetting =[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:kAudioFormatAppleIMA4],AVFormatIDKey, [NSNumber numberWithInt:16000.0],AVSampleRateKey, [NSNumber numberWithInt: 1],AVNumberOfChannelsKey, [NSNumber numberWithInt:16],AVLinearPCMBitDepthKey, [NSNumber numberWithBool:NO],AVLinearPCMIsBigEndianKey, [NSNumber numberWithBool:NO],AVLinearPCMIsFloatKey, [NSNumber numberWithInt:AVAudioQualityMax],AVEncoderAudioQualityKey, nil]; 
+4
source share
1 answer

Why are you using a sampling frequency of 16000 Hz? Could it be noisy because the sampling rate is not high enough? With PCM, the typical sampling rate is 44100 Hz. Perhaps this other post will help you: How to record sound on iPhone using AVAudioRecorder?

+3
source

All Articles