我希望在iPhone上录制语音并生成一个针对小尺寸和录音质量进行优化的文件。使用下面的AAC设置我得到一个小文件大小,但我不确定我是否获得最佳质量。除了反复试验之外,还有什么我可以转向的,还是有任何建议?
[recordSetting setValue:[NSNumber numberWithFloat:8000.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithInt: 1] forKey:AVNumberOfChannelsKey];
[recordSetting setObject:[NSNumber numberWithInt:AVAudioQualityLow] forKey: AVEncoderAudioQualityKey];
[recordSetting setValue:[NSNumber numberWithInt: 8000] forKey:AVEncoderBitRateKey];