0
我可以將iPhone錄製的音頻聲音存儲爲CAF格式嗎?iPhone CAF音頻文件格式
我可以將iPhone錄製的音頻聲音存儲爲CAF格式嗎?iPhone CAF音頻文件格式
是的。使用AVAudioRecorder進行以下設置:
[recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
[recordSetting setValue :[NSNumber numberWithInt:16] forKey:AVLinearPCMBitDepthKey];
[recordSetting setValue :[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey];
[recordSetting setValue :[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey];