formato di file audio iPhone CAF
-
02-10-2019 - |
Domanda
Posso memorizzare il suono audio registrato di iPhone in formato CAF?
Soluzione
Sì. Utilizzare AVAudioRecorder con le seguenti impostazioni:
[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];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow