Closed jackyetz closed 1 year ago
This doesn't appear to be using Dissonance at all?
Hi, mart
thank u for reply.
The above is the function I am going to realize, playing the microphone recording and play a remote-return audioclip simultaneously. Without Dissonance I encountered heavy echo problem. Now what I need is how to supress the echo by using Dissonance AEC. I followed the direction https://placeholder-software.co.uk/dissonance/docs/Tutorials/Acoustic-Echo-Cancellation.html, but failed.
I'm here asking help given the above situation.
BTW 1, Without Dissonance AEC, there is not echo problem in PC (win10 & unity 2021.3.16), yet heavy echo in android mobile phone. BTW 2, With Dissonance AEC, I got the msg as in sreenshot.
I have two gameobjects (GA and GB). Two AudioSources are established in them, respectively. The above c# code is in a separate script file and is attached in one (for example GA). And the "Dissonance Comms" is also attached in GA.
I'm not completely sure I undestand what you're trying to do, but as shown this script can't work. The Dissonance AEC system applies to the audio stream which Dissonance records, by using the Microphone
class yoursef you're taking control of the microphone away from Dissonance and preventing it from doing anything (such as applying AEC). That's actually what the error message is saying: the audio preprocessor is ready and waiting to process audio, but there's no microphone data flowing in (because you've taken control of it).
If you want to use AEC for recording you'll need to hook up to the Dissonance recorded audio stream. See these docs for information on that.
I'm not completely sure I undestand what you're trying to do, but as shown this script can't work. The Dissonance AEC system applies to the audio stream which Dissonance records, by using the
Microphone
class yoursef you're taking control of the microphone away from Dissonance and preventing it from doing anything (such as applying AEC). That's actually what the error message is saying: the audio preprocessor is ready and waiting to process audio, but there's no microphone data flowing in (because you've taken control of it).If you want to use AEC for recording you'll need to hook up to the Dissonance recorded audio stream. See these docs for information on that.
Thank martin. I will make a try following your direction. If encountering any further issue I will initiate another thread.
hi,
Unity 2021.3.16. I have two audiosource components established within respective gameobject. One records the microphone and play it immediately, the other one play audioclip received from a remote server. The c# code is as follows, where the remote audioclip is replaced with a local ogg file for the sake of simplicity. Here seems the AEC ( acoustic echo cancellation) not work. There is heavy echo problems. Could u help me more given the following code?