I would like to get your recommendation on what settings to use for audio recording using AVAudioRecorder. Below is the settings I am using currently. Also, what file extension should I save it as so users on Mac or Windows can play it without difficulties? Right now I am saving the file out as .caf
[settings setValue:[NSNumber numberWithInt: kAudioFormatAppleLossless] forKey:AVFormatIDKey]; [settings setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey]; [settings setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey]; //Linear PCM Format Settings [settings setValue:[NSNumber numberWithInt: 32] forKey:AVLinearPCMBitDepthKey]; [settings setValue:[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey]; [settings setValue:[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey]; //Encoder Settings [settings setValue:[NSNumber numberWithInt:AVAudioQualityMin] forKey:AVEncoderAudioQualityKey]; [settings setValue:[NSNumber numberWithInt:96] forKey:AVEncoderBitRateKey]; [settings setValue:[NSNumber numberWithInt:16] forKey:AVEncoderBitDepthHintKey];