Code Monkey home page Code Monkey logo

Comments (3)

michaeltyson avatar michaeltyson commented on July 18, 2024

Use echo removal: http://theamazingaudioengine.com/doc/interface_a_e_audio_controller.html#a4121e7f73c61cf85afe714fd97cad727

from theamazingaudioengine.

BillHu avatar BillHu commented on July 18, 2024

Thanks for your reply, michaeltyson.
I have tried that, but if I set the voiceProcessingEnabled to YES, it always give the "Timed out while performing message exchange", and will make the app crash later.
Here is how I configure the AEAudioController:

_audioController = [[AEAudioController alloc] initWithAudioDescription:[AEAudioController nonInterleaved16BitStereoAudioDescription] inputEnabled:YES];

if([AEAudioController voiceProcessingAvailable]){
    self.audioController.voiceProcessingEnabled = YES;
}

[self.audioController start:NULL];

_playthroughChannel = [[AEPlaythroughChannel alloc] initWithAudioController:_audioController];
self.playthroughChannel.volume = 1.0;
[self.audioController addInputReceiver:self.playthroughChannel];
[self.audioController addChannels:[NSArray arrayWithObject:self.playthroughChannel]];

if(self.audioController.inputGainAvailable){
    [self.audioController setInputGain:1.0];
}

and here is the log:

2013-07-17 17:05:47.402 test[72870:907] TAAE: Setting audio session category to PlayAndRecord
2013-07-17 17:05:47.618 test[72870:907] TAAE: Audio session initialized (input available, audio route 'SpeakerAndMicrophone')
2013-07-17 17:05:47.634 test[72870:907] TAAE: Input status updated (1 channel, non-interleaved, with converter)
2013-07-17 17:05:47.643 test[72870:907] TAAE: Engine setup
2013-07-17 17:05:47.645 test[72870:907] TAAE: Restarting audio system to use VPIO
2013-07-17 17:05:48.063 test[72870:907] TAAE: Starting Engine
2013-07-17 17:05:49.077 test[72870:907] TAAE: Timed out while performing message exchange
2013-07-17 17:05:50.083 test[72870:907] TAAE: Timed out while performing message exchange

from theamazingaudioengine.

michaeltyson avatar michaeltyson commented on July 18, 2024

Oops - good catch. Fixed in SHA fe2c96a - also, I probably steered you astray by pointing you to the property, as there's an initialiser that's more efficient: http://theamazingaudioengine.com/doc/interface_a_e_audio_controller.html#a828ada216ef19ad92841e7891b6ceab5

from theamazingaudioengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.