How to save the audio with changed pitch and speed iOS?

﹥>﹥吖頭↗ 提交于 2019-12-20 03:19:13

问题


I'm able to change the pitch and speed of my audio but I'm getting problem in saving the audio with changed pitch and speed

//this is method which set the pitch  
[self.audioEngine connect:audioPlayerNode
                       to:timePitchEffect
                   format:nil];
[self.audioEngine connect:timePitchEffect
                       to:self.audioEngine.outputNode
                   format:nil];

[audioPlayerNode scheduleFile:self.audioFile
                       atTime:nil
            completionHandler:nil];
[self.audioEngine startAndReturnError:&audioEngineError];
NSLog(@"%@",self.audioFile.url);
if (audioEngineError) {
    NSLog(@"%@",@"whats this!!!");
}

// call the method on button tap

[self playAudioWithEffect:EAudioEffectPitch effectValue:@-500.0];

I'm changing the pitch using this function but how to save it with changed pitch .... please help...

来源:https://stackoverflow.com/questions/39052576/how-to-save-the-audio-with-changed-pitch-and-speed-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!