Pergunta

Can i store iPhone's recorded audio sound into CAF format?

Foi útil?

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
scroll top