I need to extract PCM audio samples from a WAV file (or any other format) in iOS. I would also like to get the same data from a live recording using a microphone.
Can this be done using AVFoundation, or do I need to use a lower level CoreAudio APIs? An example in Swift would be greatly appreciated. I'm just looking for a basic Floats array that matches the individual audio samples that will be used to process the signals.
source
share