代码例子:Hi,推荐文件给你 "AudioConversion.zip" http://vdisk.weibo.com/s/IqeKg
代码实现如下: 需要VoiceConvert的第三方库,代码例子中都是有的。
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString* fullPath = @"音频文件来源路径名";
NSString* fullPath1 = @"音频文件保存路径名";
//wavToAmr将WAV格式转换为AMR格式
[VoiceConverter wavToAmr:fullPath amrSavePath:fullPath1];
//amrToWav将AMR格式转换为WAV格式
[VoiceConverter amrToWav:fullPath wavSavePath:fullPath1];
}