Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望将 iOS 上的录音从应用程序导出为某种适合通过电子邮件发送的格式。由于这留下了压缩格式,因此留下了未压缩的 wav,并留下了 mp3、ogg、m4a 的选择。
iOS 中有哪些现成的库(甚至 API)可以用来完成这项任务?
AVFoundation 将为您完成这项工作。特别是,您应该查看 AVExportSession,它专门用于将 pcm 编码为 mp3 或 m4a。抱歉,这里没有ogg。这些东西从 iOS4 开始就可用了。