How can I Access/extract raw(headless) audio data from a caf file on iPhone?

前端 未结 2 417
孤独总比滥情好
孤独总比滥情好 2021-01-05 16:19

I am working on a project that requires me to send raw headerless ulaw or linear pcm data to a server.

I am using the AVAudioRecorder and I can save out audio files

2条回答
  •  自闭症患者
    2021-01-05 16:37

    If you use the Audio Queue API for recording, instead of AVAudioRecorder, you will have access to raw PCM sample buffers, and can write those out to a flat file for later sending to your server.

提交回复
热议问题