2010-10-29 51 views
0

我想使用AVAudioRecorder录制语音,只要连贯一致,它实际上不必是高质量的。我应该使用哪些最精简的设置来获得最小的文件大小?AVAudioRecorder最精简的格式是什么?

现在,我使用以下内容,但我甚至不确定它们中的一些是否与我使用的.aif文件(IMA4)相关。

 NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys: 

      [NSNumber numberWithInt:kAudioFormatAppleIMA4], AVFormatIDKey, 
      [NSNumber numberWithFloat:11025.0], AVSampleRateKey, 
      [NSNumber numberWithInt: 1], AVNumberOfChannelsKey, 
      [NSNumber numberWithInt:16], AVLinearPCMBitDepthKey, 
      [NSNumber numberWithBool:NO], AVLinearPCMIsBigEndianKey, 
      [NSNumber numberWithBool:NO], AVLinearPCMIsFloatKey,    
      nil]; 

有关如何使我的结果文件尽可能小的任何建议?没有阻止降低音频样本的质量。

回答

相关问题