I use the following settings to record an audio file in .mp3 format using AVAudioRecorder.
NSDictionary *recordSettings = [[NSDictionary alloc] initWithObjectsAndKeys: [NSNumber numberWithFloat: 44100.0],AVSampleRateKey, [NSNumber numberWithInt: kAudioFormatMPEGLayer3],AVFormatIDKey, [NSNumber numberWithInt: 1], AVNumberOfChannelsKey, [NSNumber numberWithInt: AVAudioQualityMax],AVEncoderAudioQualityKey,nil];
But failed to record with them. I searched a lot for this, but could not get the corresponding position. Some reports say this is not possible. If this is not possible, then why? Please reply.
iPhoneDev
source share