Post

Replies

Boosts

Views

Activity

AVAudioRecorder and audio data file offset
I'm trying to get a wav file to outside API from iOS. I've managed to do the file and post it from iPhone but the service doesn't take it (API errors are not helpful either). I've managed to track down the difference between a file I manage to send to the service and the file save with iPhone to audio data file offset parameter. afinfo command gives the working file value 44 and iOS saved audiofile has 4096. Is there any way to change this to 44 also on iOS?My current settings for AVAudioRecorder:let recordSettings = [ AVNumberOfChannelsKey: 1, AVSampleRateKey: 16000.0, AVFormatIDKey: kAudioFormatLinearPCM, AVLinearPCMBitDepthKey: 8, AVLinearPCMIsBigEndianKey: false, AVLinearPCMIsFloatKey: false, AVLinearPCMIsNonInterleaved: false ]
2
0
960
Jun ’15