Replies: 3 comments 5 replies
-
This is quite simple - UltraGrid doesn't currently incorporate an echo-canceller. There is actually one in UG, but it is currently disabled, we may fix it in future. The difference is that commercial chat application solve easier problem - it usually uses single sound device with the same input/output clock. This is not necessarily true for UltraGrid where you may have completely independent device, like DeckLink on input and ALSA on output. If using Linux with PulseAudio, you may also try its echo canceller, which would work below UltraGrid. |
Beta Was this translation helpful? Give feedback.
-
I don't have own experience but you can check this tools, I believe that it may do the same job as Pulseaudio. Although the headline of the list says noise cancelling, right the first – Krisp – states that it does echo cancellation as well. |
Beta Was this translation helpful? Give feedback.
-
Hi! I've done some work on the echo canceller that is included in UltraGrid. To try it you can download a build from here. To enable it, pass the argument Note, that it is currently pretty experimental and there are tons of limitations. Firstly, the sampling clock of the recording and playback devices must be the same (using the internal mic and speakers should be fine). Second, the sound system should not have any nonlinearities or distortions (no clipping must be present, also various "sound enhancements" or equalizers could impair echo cancellation). Finally, the echo canceller is very sensitive to audio drop outs, so there should be no packet drops on the network. An external echo canceller (like Martin mentioned earlier) could provide a better user experience if you can get it working. |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I would like to ask a few questions in regard to echo and audio feedback and squealing. I don't have much experience with sound as I have a mostly video and installation background), but I did search a bit about audio feedback and what is causing it.
The problem
If I create an audio connection between 2 PCs via UltraGrid, I get audio feedback / squealing. And if I plug in a pair of headphones onto one of the PCs, I realize that I get echo of my voice from the other room (which does not use headphones) which is annoying for the speaker to hear her/his own voice. This would probably be the reason for audio feedback in the end.
For now I am trying to replicate a commercial audio chat application like FB Messenger or Skype because I would like to compare UG to them in relation to how they deal with echo and audio feedback. What I mean is why, in a similar situation (same PCs, same capture and playback devices, same spaces) , FB Messenger and Skype would not produce echo and audio feedback, but Ultragrid does? I know there are some circumstances where one can get echo or / and audio feedback while having a normal phone conversation and sometimes while using commercial chat apps. But still not often and not always like I do now with UG. :)
I am asking because maybe I did not choose the proper capture or playback devices or maybe I can add some extra code to it.
The setup
I have 2 PCs in 2 different spaces running UltraGrid. The code is simple
PC1
uv -s portaudio:1 -r portaudio:4 [IP of PC2]
PC2
uv -s portaudio:1 -r portaudio:4 [IP of PC1]
The capture device for both PCs is portaudio:1 - Microphone (Realtek(R) Audio) (output channels: 0; input channels: 2; MME) while the playback device is portaudio:4 - Speakers (Realtek(R) Audio) (output channels: 2; input channels: 0; MME)
Observations
Most of tips were related to stage setup and similar where you can manage the problem by positioning the microphones and the speakers properly. But for digital communication via chat apps (with internal devices) I couldn't find many solutions. My guess is that these problems which seem to be normal are solved in the software itself. Maybe I am wrong.
Please let me know what you think and how to fix this.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions