War*_*una 4 audio signal-processing ios
我即将开始开发用于音频处理的iOS应用程序.目前,由于这是一个研究项目,因此不太确定应用程序的要求是什么.但基本要求至少是从麦克风输入中检测线缆,触发器.因此,我重视您对可用库的看法,您认为这些库对此类工作有益.我想尽可能远离第三方图书馆.
我建议使用Novocaine库.如果你自己从头开始做音频的东西真是太痛苦了......
https://github.com/alexbw/novocaine
使用音频单元在iOS和Mac OS X中真正快速的音频很难,并且会让你感到伤痕累累和血腥.过去需要几天的时间现在只需几行代码即可完成.
Novocaine *audioManager = [Novocaine audioManager];
[audioManager setInputBlock:^(float *newAudio, UInt32 numSamples, UInt32 numChannels) {
// Now you're getting audio from the microphone every 20 milliseconds or so. How's that for easy?
// Audio comes in interleaved, so,
// if numChannels = 2, newAudio[0] is channel 1, newAudio[1] is channel 2, newAudio[2] is channel 1, etc.
}];
Run Code Online (Sandbox Code Playgroud)