Comments (3)
Use echo removal: http://theamazingaudioengine.com/doc/interface_a_e_audio_controller.html#a4121e7f73c61cf85afe714fd97cad727
from theamazingaudioengine.
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.
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)
- 1.5.7 not on Cocoapods HOT 2
- Open the dome,Bluetooth speakers will automatically stop working? HOT 1
- How can I set the preferredInput? Everytime I change it, it sets it back to previous.
- Stop doesn't work if the audioDescription preferred sampleRate is different than detected
- user AEAudioController Empty my control center
- Using play through channel ,but need to delay the playing
- Prepare and begin recording
- Is TheAmazingAudioEngine possible to perform audio synthesis?
- Can only record m4a type ? HOT 1
- 请问一下theamazingaudioengine 录音的时候如何过滤扬声器声音 HOT 2
- Hi, I need to create a visualizer like ZLHistogramAudioPlot. I try to use this code
- Create ZLHistogramAudioPlot like visualizer using TheAmazingAudioEngine
- React Native version?
- regionStartTime not work
- 可以绘制音波图吗
- Crash AEUtilities.h -[AEAudioController teardown] HOT 1
- demo 不清楚怎么使用的 可以讲一下吗
- Multiple samples not playing at the same time in iOS 14 HOT 5
- `AEAudioBufferListGetLength ()` has a incorrect implementation HOT 2
- How to export modified audio file?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theamazingaudioengine.