用最小的文件大小在iPhone上录制音频 [英] Record audio on iPhone with smallest file size

查看:229
本文介绍了用最小的文件大小在iPhone上录制音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用iPhone录制音频,然后上传到服务器。

我可以录制音频,但是我的问题是应该使用哪种格式来录制音频,以便录音机生成最小文件大小的文件。

这些是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆