HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP


Reply
 
Thread Tools
Old May 4, 2003, 12:50 AM   #1
HardwareHeaven Lover
 
Join Date: Feb 2003
Posts: 213
Rep Power: 0
Mata Hari is on a distinguished road

Echo cancelation? (VoIP)

Question for the DSP gods here...
Would an echo eliminater be possible? (forinctance to use Voice over IP)

this meaning, the echo could come as far as 200ms later, and has gone transcoding through 4 codecs (in local, out remote, back to mic in at remote, going to codec in remote, and codec out local)

I doubt that it's possible, or, if it is, then it is probably very hard to do? (not digital exact filtering inside the dsp, keeping track of unknown latencys...?)
Mata Hari is offline   Reply With Quote


Old May 4, 2003, 10:14 PM   #2
DriverHeaven Addict
 
Join Date: Dec 2002
Posts: 259
Rep Power: 0
eyagos is on a distinguished road

Sometime ago I wrote a pluging to reduce the typical echo produced with a microphone. It gives poor quality sound, but is enougth for IP voice. I called it "FeedBack Destroyer", and maybe the one you are looking for...
But it doesn't takes any delays into account. Just try it:

Feedback Destroyer.rar
eyagos is offline   Reply With Quote
Old May 5, 2003, 01:35 AM Threadstarter Thread Starter   #3
HardwareHeaven Lover
 
Join Date: Feb 2003
Posts: 213
Rep Power: 0
Mata Hari is on a distinguished road

mmm, broken link?
Mata Hari is offline   Reply With Quote
Old May 5, 2003, 12:25 PM   #4
DriverHeaven Addict
 
Join Date: Dec 2002
Posts: 259
Rep Power: 0
eyagos is on a distinguished road

Yep, wait until tomorrow.
eyagos is offline   Reply With Quote
Old May 5, 2003, 10:04 PM   #5
DriverHeaven Addict
 
Join Date: Dec 2002
Posts: 259
Rep Power: 0
eyagos is on a distinguished road

Well, it's ready. This version works, but it is the simples't solution. I'm making a more elaborated one, wich eliminates more echoes with more sound quality...



Feedback Destroyer V1.0
eyagos is offline   Reply With Quote
Old May 6, 2003, 01:30 AM Threadstarter Thread Starter   #6
HardwareHeaven Lover
 
Join Date: Feb 2003
Posts: 213
Rep Power: 0
Mata Hari is on a distinguished road

Although this also is very handy at certain points, and very thanks for this and helping me! But it's not exactly what I ment.

As I see it (and tested it) This kills feedback in the local sound system, but the thing I was thinking of should kill echo in a local/remote system...

let me try and explain it... and I'll try to explain, wich parts I don't think are possible in the DSP (which of I hope I'm wrong :-)

The normal system would be Mic -> encoder -> internet -> decoder -> output remote
And on the other side, other way around...

Now the echo is when the mic remote picksup the output from output remote, then encodes that, and sends it back.
This echo will arive at the local system at a latency of anywhere between 20ms to maybe even 500ms (for VoIP, 200ms roundtrip with echo cancalation is doable)

The normal way of doing this I think(!) is to cache the recorded sound for around 1 sec. and analyse the incoming sound to see if the original recorded data is there at any offset, and if it is, within a threshold, soften and filter that...

Now, the problem I see is the DSP caching audio data for that long, and if it CAN do that, filtering it without a known latency...

I hope this makes it a bit more clear :-)
And maybe there is another way of this kind of echo cancalation I'm overlooking?
Mata Hari is offline   Reply With Quote
Old May 6, 2003, 04:22 PM   #7
DriverHeaven Addict
 
Join Date: Dec 2002
Posts: 259
Rep Power: 0
eyagos is on a distinguished road

Well, I understand. This problem seems to be more complicated. And I think there not exists any simple and convincing algorithm to eliminate this echoes.

Just one question: Can you send and receive signals in stereo (two independent channels)?. If this could be posible, using various speakers and the same number of microphones (in example 2 and 2), you could succeed, in theory, and with a very simple system, to hear the voice of the opponent , but not to record it, so the echoes can't be propagated.
eyagos is offline   Reply With Quote
Old May 6, 2003, 11:17 PM Threadstarter Thread Starter   #8
HardwareHeaven Lover
 
Join Date: Feb 2003
Posts: 213
Rep Power: 0
Mata Hari is on a distinguished road

No, not really, the signal itself is coded by the GSM codec, or even lower bitrate codecs, to keep the bandwith as low as possible
making it dual channel would mean increasing the signal by 2, wich is not accaptable in this form of application, and the goal here would be, low bandwith, accaptble sound, low latency, no echo, with standard live and mic's...

Maybe it is wiser to let the echo cancelation be done by some other type of programming, and not the DSP it self (wich there are solutions for, intel made lots of progress in that field)
Mata Hari is offline   Reply With Quote
Old Jun 9, 2003, 03:15 AM   #9
DriverHeaven Newbie
 
Join Date: Jun 2003
Location: Wuppertal, germany
Posts: 18
Rep Power: 0
Grasso is on a distinguished road

Echo cancellation is pretty standard nowadays. These algorithms are self-adjusting, that means that after the audio connection is up it takes a second or two until the echo cancellation fully works. They must be self-adjusting because every connection, speaker, microphone and room is different. You can hear that real-time self-adjustment when you make a connection to a portable telephone inside a car or a similar device with strong echo cancellation.

Uli
Grasso is offline   Reply With Quote
Old Jun 9, 2003, 03:56 AM   #10
DriverHeaven Addict
 
Join Date: Dec 2002
Posts: 259
Rep Power: 0
eyagos is on a distinguished road

Grasso, what kind of echoes are you talking about?
eyagos is offline   Reply With Quote
Old Jun 9, 2003, 04:40 AM   #11
DriverHeaven Newbie
 
Join Date: Jun 2003
Location: Wuppertal, germany
Posts: 18
Rep Power: 0
Grasso is on a distinguished road

I speak of all that noise that one gets when the speaker crosstalks into the microphone, or when the substraction circuits don“t fully substract the signal. More or less delayed feedback, ranging from capacitive crosstalk at 1KHz, i.e. less than a ms, to satellite transmission, i.e. several hundreds of ms, occurs.
Grasso is offline   Reply With Quote
Reply

Thread Tools