TAAE1 : How to mute input voice while recording
I'm recording some musics and my own voice , sometimes i just want recording musics
How can I mute my voice but only record musics?
I'm new on TAAE , I try some way but failed
[AEAudioController addInputReceiver:] and [AEAudioController removeInputReceiver:] is not work
when the output is recording and i remove inputReceiver :
can you help me ? thanks !!!
Comments
@CoderMaurice,
I added a UISwitch to enable/disable input recording within Michael Tyson's TheEngineSample project. You can find it here:
https://github.com/markjeschke/TAAE1-Input-Recording-Switch
Here's what I did:
viewDidLoad
:cellForRowAtIndexPath
, I add another row with a UISwitch to enable and disable the inputRecordingEnabled boolean:numberOfRowsInSection
:inputRecordSwitchChanged
method:if
condition to detect whether the input recording is enabled in therecord
method:I hope this helps.
Take care,
Mark
@markjeschke
Sorry, I didn't say my problem clearly.
I need a real-time switch to set inputRecordingEnabled.
Do you know how to do it?
Thank you anyway,
Maurice
@CoderMaurice,
What's the reason for wanting to change the input during recording? Is this so that you can mute your mic's input during your performance?
I don't believe the input receiver is meant to be turned on and off in the middle of recording, hence the "Out of buffer space" error. But, @Michael would be a better person to answer that question.
Good luck,
Mark
@markjeschke
Yes , you are right .
For example , I'm recording a lyrical radio program , most of the time I just play background music to
listeners and speak little. In this case , I prefer to turn off the mic.
In iPhone's call , you can mute the mic at any moment .
In TAAE1 ,Is this possible ? @Michael
A few options spring to mind, @CoderMaurice:
If you've only just started the project, then I'd strongly recommend checking out AudioKit, an excellent and less technical audio engine which may suit you better.
If AudioKit doesn't do it for you, check out The Amazing Audio Engine 2, which is still in beta but is less rigid than TAAE 1 is, although still relatively technical.
Alternatively, if you're set on TAAE1, try exposing the mixer underlying AERecorder by inserting the following at the top of your class:
Then mute/unmute the mic source with:
@Michael
Thank you for your reply.
The project will soon to the deadline , so I can't spend to much time to change the way.
I'm interested in TAAE2 and I will try next time !
Thanks again , for your code !
@CoderMaurice,
I updated my repo with @Michael's AEMixerBuffer code additions. It mutes and unmutes the mic during recording, as expected:
https://github.com/markjeschke/TAAE1-Input-Recording-Switch
Enjoy,
Mark
@markjeschke
Thanks for your quick response! it works!
This is very helpful!
@CoderMaurice
You're welcome! Thanks, @Michael, for the help!