Skip to content

huisedediao/XBEchoCancellation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

XBEchoCancellation

基于audio unit的回音消除


使用:


获取麦克风输入:
    XBEchoCancellation *echo = [XBEchoCancellation shared];
    echo.bl_input = ^(AudioBufferList *bufferList) {
    	AudioBuffer buffer = bufferList->mBuffers[0];
        // buffer即从麦克风获取到的数据,默认已经消除了回音
    };
    [echo startInput];

播放pcm音频数据:
    XBEchoCancellation *echo = [XBEchoCancellation shared];
    echo.bl_output = ^(AudioBufferList *bufferList, UInt32 inNumberFrames) {
    	AudioBuffer buffer = bufferList->mBuffers[0];
        // 这里把要传给发声设备的pcm数据赋给buffer
    };
    [echo startOutput];

如果对你有所帮助帮忙star下

About

基于audio unit的回音消除

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published