在 iPhone 上以最小的文件大小录制音频 [英] Record audio on iPhone with smallest file size
问题描述
我想用 iPhone 录制音频然后上传到服务器.
I want to record audio with iPhone and then upload it to server.
我可以录制音频,但我的问题是我应该使用哪种格式来录制音频,以便录制器生成文件大小最小的文件.
I could record the audio, but my question is about which format should I use to record audio, so that the Recorder will result a file with smallest file size.
推荐答案
以下是 iPhone 支持的几种编码的结果.时长 10 秒的音频文件大小(以 KB 为单位).
Here are the results for few encoding supported by iPhone. Size of audio file in KB of duration 10 sec.
kAudioFormatMPEG4AAC : 164,
kAudioFormatAppleLossless : 430,
kAudioFormatAppleLossless : 430,
kAudioFormatAppleIMA4:475,
kAudioFormatAppleIMA4 : 475,
kAudioFormatULaw : 889,
kAudioFormatULaw : 889,
kAudioFormatALaw : 889,
kAudioFormatALaw : 889,
其中 kAudioFormatMPEG4AAC 的尺寸最小.
这篇关于在 iPhone 上以最小的文件大小录制音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!