I use two audio unit obj (a,b)to do the intercom demo. and unitA to do the record .unitB to do the playback, use the AVAudioSession like this :
[sessionInstance setMode:AVAudioSessionModeDefault error:&error];
[sessionInstance setCategory:AVAudioSessionCategoryPlayAndRecord
withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker|AVAudioSessionCategoryOptionDuckOthers error:&error];
I use kAudioUnitSubTypeVoiceProcessingIO to do the echo cancellation. but When we talk in a quiet room ,the VPIO have echo remain ,at the end of every sentences.
iphone1 talk with iphone2 ,and iphone1 can hear some voice of iphone1, It's not eliminated of iphone2 by the kAudioUnitSubTypeVoiceProcessingIO。
so have any function to change the delay-time when we use VoiceProcessingIO ?
[sessionInstance setMode:AVAudioSessionModeDefault error:&error];
[sessionInstance setCategory:AVAudioSessionCategoryPlayAndRecord
withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker|AVAudioSessionCategoryOptionDuckOthers error:&error];
I use kAudioUnitSubTypeVoiceProcessingIO to do the echo cancellation. but When we talk in a quiet room ,the VPIO have echo remain ,at the end of every sentences.
iphone1 talk with iphone2 ,and iphone1 can hear some voice of iphone1, It's not eliminated of iphone2 by the kAudioUnitSubTypeVoiceProcessingIO。
so have any function to change the delay-time when we use VoiceProcessingIO ?