AudioKit - Temporary file size is too big

白昼怎懂夜的黑 提交于 2019-12-10 19:43:36

问题


I am using AudioKit's AKNodeRecorder for recording audio.

While recording audio it generates CAF file in a temp directory. if we save it with exportAsynchronously it creates a new file with m4a extension in document directory.

The CAF file generates in temp directory is too big in size. 1 sec of audio takes 1 sec = 360000 bytes = 0.36 MB Disk space

while after exporting m4a file takes 1 sec = 32000 bytes = 0.032 MB Disk space

The m4a space is good for recording an audio. but the CAF file size is too big for long time recording.

I have to record 2.5 hrs of audio at one time, which will generate 3.6 GB of CAF file

Can we use less disk space while recording?

来源:https://stackoverflow.com/questions/49918260/audiokit-temporary-file-size-is-too-big

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!