2010-10-29 36 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]; 

有關如何使我的結果文件儘可能小的任何建議?沒有阻止降低音頻樣本的質量。

回答

相關問題