问题描述
我想在我的App M4a文件中转换为Mp3文件,我尝试使用TSlibraryimport但它没有做这个过程。
i want to convert in my App M4a file to Mp3 file, i try to use the TSlibraryimport but it not doing this proccess .
它也可以通过将m4a文件移动到nsdata
it can be done also by moving the m4a file to nsdata
推荐答案
您可以尝试使用CoreAudio
You can try to use CoreAudio
和LAME编解码器(出于许可证原因,这不包含在iOS中)
and LAME codec (this isn't included in iOS for license reasons)
通过CoreAudio转换音频类型的一些示例:
some example of converting audio types via CoreAudio:
http://developer.apple.com/library/mac/#samplecode/ConvertFile/Introduction/Intro.html
和CoreAudio docs:
and CoreAudio docs:
http://developer.apple.com/library/mac/#documentation/MusicAudio/Conceptual/CoreAudioOverview/Introduction/Introduction.html
并支持fil CoreAudio的etypes:
and supported filetypes for CoreAudio:http://developer.apple.com/library/mac/#documentation/MusicAudio/Conceptual/CoreAudioOverview/SupportedAudioConverterFormats/SupportedAudioConverterFormats.html#//apple_ref/doc/uid/TP40003577-CH7-SW1
这篇关于将M4a转换为Mp3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!