iPhone에 "Apple Lossless"오디오를 녹음하십시오
-
22-08-2019 - |
문제
iPhone에 Apple Lossless Audio 파일을 녹음하는 방법을 설명하는 문서/스 니펫/블로그를 알려 주시겠습니까?
Apple Dev Center에서 오디오 레코더 예제를 검사했지만 무손실 오디오에 사용하는 설정을 알아낼 수 없었습니다.
문안 인사,
스테판
해결책
iPhone OS는 여러 가지 압축 오디오 인코딩 형식을 사용하여 .CAF 파일 녹화를 지원합니다.
Apple Lossless -Kaudioformatapplelossless
ILBC (인터넷 낮은 비트 레이트 코덱) -Kaudioformatilbc
IMA/ADPCM (일명 IMA4) -Kaudioformatappleima4
µlaw -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;
}
당신은 확실히 읽고 싶을 것입니다 오디오 대기열 서비스 프로그래밍 안내서
다른 팁
Apple iPhone Dev Center의 Speakhere 예를 살펴보십시오.
.aiff (비 압축)에 Italk Recorder Premium을 사용한 다음 노트북으로 내보내고 사용합니다. FLAC 압축하려면 - 기본적으로 시간표를 유지하십시오.
flac --best *.aiff
제휴하지 않습니다 StackOverflow