用最小的文件大小在iPhone上录制音频 [英] Record audio on iPhone with smallest file size
问题描述
我可以录制音频,但是我的问题是应该使用哪种格式来录制音频,以便录音机生成最小文件大小的文件。
这些是iPhone支持少量编码的结果。音频文件的大小,以KB为单位,持续时间10秒。 kAudioFormatMPEG4AAC:164 ,
kAudioFormatAppleLossless:430,
kAudioFormatAppleIMA4:475,
kAudioFormatULaw:889,
kAudioFormatALaw:889,
其中 kAudioFormatMPEG4AAC 尺寸最小。 b
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.
Here are the results for few encoding supported by iPhone. Size of audio file in KB of duration 10 sec.
kAudioFormatMPEG4AAC : 164,
kAudioFormatAppleLossless : 430,
kAudioFormatAppleIMA4 : 475,
kAudioFormatULaw : 889,
kAudioFormatALaw : 889,
Among these kAudioFormatMPEG4AAC is having smallest size.
这篇关于用最小的文件大小在iPhone上录制音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!