如何将过滤器应用于以前录制的声音并使用AudioKit保存修改的版本?
以前有一个录制的声音文件,其中包含用户的声音.我需要做的是应用一些声音过滤器来更改声音,然后可以保存和播放修改后的版本.
There is a previously recorded sound file containing user's voice. What I need to do is apply some sound filter to change the voice and after that be able to save and play modified version.
AudioKit 可以使用[[AKFileInput alloc] initWithFilename:file1];
打开文件并使用[[AKManager sharedManager] renderToFile:outputFile forDuration:duration];
AudioKit can open file using [[AKFileInput alloc] initWithFilename:file1];
and save with [[AKManager sharedManager] renderToFile:outputFile forDuration:duration];
有什么想法如何在这两个命令之间应用一些效果?
Any ideas how to apply some effects between these 2 commands?
除了使用AKFileInput打开文件之外,您还必须对其进行播放,并且要创建一个AKInstrument.在该AKInstrument中,您可以使用AudioKit的任何信号修改器操作来处理输出.
In addition to opening the file with AKFileInput, you have to play it back, and to do so, you'll be creating an AKInstrument. In that AKInstrument you can process the output with any of AudioKit's signal modifier operations.