iPhone CAF audio file format
-
02-10-2019 - |
Pergunta
Can i store iPhone's recorded audio sound into CAF format?
Solução
Yes. Use AVAudioRecorder with the following settings :
[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];
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow