你能给我介绍一下文档/片段/博客,它们解释了如何在iPhone上录制苹果无损音频文件吗?
我已经检查了来自Apple Dev Center的录音器示例,但不能确定我使用了哪种设置来实现无损音频。
致以敬意,
斯特凡
发布于 2009-05-20 15:42:19
iPhone OS支持使用多种不同的压缩音频编码格式录制.caf文件:
苹果无损- kAudioFormatAppleLossless
iLBC (互联网低比特率编码)- kAudioFormatiLBC
IMA/ADPCM (又称IMA4) - kAudioFormatAppleIMA4
µ法律- kAudioFormatULaw
aLaw - kAudioFormatALaw
- (id) initWithURL: fileURL {
NSLog (@"initializing a recorder object.");
self = [super init];
if (self != nil) {
// define the audio stream basic description for the file to record into
// record audio at the current hardware sample rate
// make sure the audio session is active before asking for properties
UInt32 propertySize = sizeof(audioFormat.mSampleRate);
AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareSampleRate,
&propertySize,
&audioFormat.mSampleRate);
audioFormat.mFormatID = kAudioFormatAppleIMA4; // record using IMA4 codec
audioFormat.mChannelsPerFrame = 1;
AudioQueueNewInput(&audioFormat, ... );
...
}
return self;
}发布于 2009-05-17 19:55:50
请看苹果iPhone开发人员中心上的SpeakHere示例。
发布于 2015-03-22 22:25:25
我使用.aiff的iTalk录像机高级版(未压缩),然后导出到笔记本电脑,并使用flac压缩它-它默认保留时间戳。
flac --best *.aiffhttps://stackoverflow.com/questions/875252
复制相似问题