Slashdot Mirror


Software Based Echo Cancellation?

tcyun asks: "I am helping to put together a small studio for a project at my workplace which will require some audio mixing. We have been able to find software solutions (often times open source) for almost all of our needs except for echo cancellation. I have done the requisite searches and have found a large number of hardware based echo cancellation devices, but have not found a purely software based solution. Is anybody aware of one?"

"For some more information, my office is trying to get a small system up and running that will allow multiple locations to video conference together. We have some specific requirements and have a fairly good handle on the entire video part of the problem.

However, we are running into problems with parts of our audio mix. The first issue is something that (I believe) is called 'mix minus.' This means that in a group conference, speakers do not have audio sent back to their location. (This is important for various psychology and network latency related issues.) There are several hardware based solutions that are available and we have some software based options.

The larger problem is echo cancellation. As many people may need to speak at once (and to avoid the requirement of having individuals constantly muting their microphones), we would like an echo cancellation component. The ideal would be a software solution that we could run locally, perhaps in conjunction with the same code running on the remote systems. However, most of the solutions we have found are hardware based (DSPs, ASICs, etc.).

The technology used on the studio side as well as the host side will involve various operating systems. We are trying to avoid avoid relying on specific OTC hardware solutions (namely, sound cards) as we would like to be able to create a solution that would function over time, particularly as specific hardware solutions tend quickly to horizon. So, having nice code that could be compiled on different systems would be a plus. Ideally, we would like to minimize the amount of hardware necessary, so an echo cancellation algorithm that could run in conjunction with other processes would be nice, but it is not a requirement."

59 of 211 comments (clear)

  1. how do you do that? by vladkrupin · · Score: 2, Insightful

    wouldn't the echo cancellation itself propogate over time and create artifacts in the sound? Or am I totally misunderstanding the issue altogether?

    --

    Jobs? Which jobs?
  2. Hardware Audio Tools by saveth · · Score: 5, Informative

    The reason you're finding more hardware tools than software tools for echo cancellation, among other things, is that the telecommunications industry demands these sorts of things with much more fervor than the average consumer. Echo cancellation devices (for example, a codec with echo cancellation built in, running on a DSP) are used extensively in cellular telephones, voice routers, and this sort of thing. Your best bet, in this respect, is to find a company that is willing to release the source code to the software that is running on your hardware.

    Alas, I do not know of any software, especially open source or free, that provides a full suite of audio processing utilities. Why is it that you're against using hardware, in the first place? Too expensive? Those are the breaks.

    1. Re:Hardware Audio Tools by newerbob · · Score: 2, Informative
      You don't want echo cancellation, you want an acoustically dead studio.

      Put foam on the walls.

      --

      --
      Ask the Ya-Hoot Oracle Anything!
    2. Re:Hardware Audio Tools by Ooblek · · Score: 3, Interesting
      I believe the echo he is referring to is the echo that happens in the latency from the time their voice is spoken to the time it makes the round trip from the other side.

      The term "Mix Minus" does not apply here. It is generally used in post production where you lay off your audio mix minus the voice over. You probably also don't need echo cancellation software. Just put a mixing board on each side of the conference call. Mix the local side's voice with the remote side's voice on each side. So they hear themselves as they speak and don't hear themselves from the remote side. Use directional microphones so that the loud speaker on the remote side can't be heard in the remote microphones. You could also require everyone to wear headphones I suppose. (Probably wouldn't be popular.)

    3. Re:Hardware Audio Tools by ibennetch · · Score: 2, Interesting

      Just FYI; a minux mix is often used, for example, in news operations where a satellite feed is being used. The remote reporter gets a minus mix, which is program audio minus their voice. Because of the distance 22,000 miles out and back twice (once to the station and once back) should add up to like 5 or 6 seconds. when you're trying to talk, listen to the producer or director talk to you, and interact with the reporters in the studio, hearing your own voice delayed that badly isn't a good idea. It's not the program audio (what you hear in your house) that's minus anything; but the signal to the reporter on the other end of the satellite.

  3. Noise gate by joshwa · · Score: 3, Informative

    As many people may need to speak at once (and to avoid the requirement of having individuals constantly muting their microphones),

    Why not just install a noise gate at the microphone inputs?

    For the non-audio-inclined slashdotters, a noise gate sets a minimum sound level threshold before the signal is transmitted.

    1. Re:Noise gate by Anonymous Coward · · Score: 3, Informative

      >>For the non-audio-inclined slashdotters, a >
      >>noise gate sets a minimum sound level threshold
      >>before the signal is transmitted.

      I'm no audio engineer, but it's obvious it wouldn't work.

      Person A talks into Microphone A - also picked up with a delay in Mic B.

      a)You want to cancel the echo from Mic B - so you use a noise gate. it works as long as i don't talk loud enough to cross the threshold on Mic B. Given that this is in a conference setting, the mic of the person next to me is going to pick me up without that huge of difference from the mic right in front of me. Whats the difference between me speaking loudly and the person next to me speaking somewhat softly? Not much and the gate doesn't know any different.

      b)To screw things up we only have to get over the threashold. So I'm speaking AND a neighbor starts to speak. So the sound at his mic is his voice + my voice. The total is over the threashold. Again - the gate does nothing.

    2. Re:Noise gate by goofy183 · · Score: 2, Interesting

      Actually a noise gate would be very effective. I am involved in our colleges technincal sound & lighting organization. We run pro level audio systems for concerts and such here. As was suggested a gate would cut the mic channel once the signal went below a certain level. Your worry about the sound comming from the confrence room speakers triggering the gate is semi valid. You would have to do a bit of trial and error in each room to set the db level to cut off the signal at. I figure if we use gates on a drum set at a concert with house speakers putting out 120+ db and them still only have the gates allow signal when the set is being played.

      So I know the original post may not want to use hardware but gates are your best bet. If there could be any way to have each person's mic on it's own channel into the computer you may be able to write some simple audio proccessing software to mute a channel after the signal is below a certain level.

  4. Removing echo by Myshkin · · Score: 5, Funny

    sed 's/^echo/#echo/' /etc/inetd.conf >/etc/inetd.new
    mv /etc/inetd.new /etc/inetd.conf
    kill -HUP $(ps -ef |grep root.*inetd|grep -v grep|awk '{print $2}')

    no more echo

    1. Re:Removing echo by sporty · · Score: 2

      Heh, I guess my delivery was off :\

      http://slashdot.org/comments.pl?sid=32264&cid=34 85 471

      --

      -
      ping -f 255.255.255.255 # if only

    2. Re:Removing echo by zbuffered · · Score: 5, Funny

      You can do it even easier in DOS:
      echo off

      --
      Synergy is your friend
    3. Re:Removing echo by MadAhab · · Score: 2

      And even though most systems do have killall, the original poster's version works whether inetd or xinetd is being used! Better. Though the "grep [i]net" bit is indeed shorter.

      --
      Expanding a vast wasteland since 1996.
  5. Asterisk PBX by Anonymous Coward · · Score: 5, Informative

    There's an excellent open-source PBX called Asterisk. Among other things, it provides an MMX-optimized echo-canceller. Look here

  6. Tough Problem by mellifluous · · Score: 3, Informative

    Maybe someone at /. will find an answer for you, but I would be surprised to see this implemented in any kind of stand alone SW package. Because it is a specialized real-time application requiring fast feedback, it makes sense to implement it as an embedded system (i.e. in hardware).

  7. Hack old Modem Drivers! by WndrBr3d · · Score: 5, Interesting

    Back in the day when 56k modems were taking off, there was a large piece of software people were coding into drivers called 'Ring Cancelation'.

    These were added because when you send data down an analog line at high speeds, you begin to hear an audible sound which sounds like ringing. The modem drivers needed to be able to tell the difference between this ringing sound and the actual data.

    I think a good place to start if you cannot find any software is perhaps hacking these drivers or something along those lines.

    It's a good start at least. Hope this helps :-)

    1. Re:Hack old Modem Drivers! by mellifluous · · Score: 4, Insightful

      I don't think this is quite the same problem. Ring cancellation is looking for a very particular sound with known characteristics. Echo cancelation has to supress the delayed versions of an aribitrary sound feeding back through the system.

  8. we need more by RealisticWeb.com · · Score: 3, Insightful

    This is a great question you are asking, and I would love to see a good answer. The shame of it is, I'm expecting to see a bunch of posts in response to this saying "If you need one then write it yourself".

    Is it just me, or does it seem like the open source offerings for things related to audio/video are lacking in general? I wish I had time to make improvements myself, or the money to contribute to the developers, but it seems like we need more in this area to be able to be more competitive with proprietary solutions.

    --
    Sigs are out of style, so I'm not going to use one...oh wait..
    1. Re:we need more by fferreres · · Score: 2

      Are there any closed source software echo cancelation utils already done? Are they practical?

      People are arguing that the software solutions are to limited or to expensive to implmement so that hardware echo cancelation is what we have now.

      --
      unfinished: (adj.)
  9. Re:Professionalism by tps12 · · Score: 2

    If you think about it, most of the front page is usually quoted (since the editors try to minimize their own writing), so italicizing the whole page is probably a pretty close approximation.

    --

    Karma: Good (despite my invention of the Karma: sig)
  10. Classic application! by spaceyhackerlady · · Score: 3, Informative

    Echo cancellation is a classic application of adaptive filters. Every reference ever published on the subject discusses it. I like Haykin's book myself.

    I just did a search on Google and came up with 4000 references.

    The underlying theory is pretty hairy, but the implementation of an algorithm like LMS is straightforward.

    ...laura

    1. Re:Classic application! by Erandir · · Score: 3, Informative
      Laura's right: you'll find the maths and the algorithms for echo cancellation in most textbooks on adaptive filtering. Check out the July 1999 issue of the IEEE Signal Processing Magazine (it shouldn't be too hard to get hold of it, most university libraries' engineering section should have it) -- it is an issue dedicated to "Adaptive Algorithms and Echo Cancellation". All the maths and algorithms you need are discussed there. Yes, you do need a good background in linear algebra to follow the underlying theory, but the algorithms should be easier to implement, and you're likely to find source code for most of them on the web (LMS filtering is used in many other applications too).

      Echo cancellation is a common design problem in hands-free telephone systems and conference systems; there is lots of literature on the subject. See the references in the articles I mention above.

  11. Microsoft! by genka · · Score: 2, Interesting

    It is as far from the open source as it gets, but the Windows Messenger includes voice features and has a software echo cancellation. Little known fact: Messenger 4.6 does not need Passport for operation, in closed enviroments any SIP server will do just fine. Also, encoded media stream it outputs uses standard encoders and standard RTP protocol. So Messenger can interoperate with many applications.

  12. The Access Grid uses hardware to do this... by Troy+Baer · · Score: 3, Interesting

    The Access Grid is a project started at Argonne National Lab's Math and Computer Science Division to build a mostly open videoconferencing system over the Internet, using multicast audio and video streaming. You may want to take a look at their technology to see if they have ideas you can use.

    Anyway, a "node" on the Access Grid consists of a room with at least three computers: a multihead box running Win2k for display to several video projectors, a computer running Linux for audio capture and playback, and another running Linux for video capture. The audio capture machine usually runs into a Gentner AP400, which does echo cancellation as well as phone bridging.

    I don't know of anybody who has software that does this; sorry.

    --Troy
    --
    "My life's work has been to prompt others... and be forgotten." --Cyrano de Bergerac
    1. Re:The Access Grid uses hardware to do this... by mikeage · · Score: 2

      We just set up our AG node this past month... we do echo cancelation with a nice fancy box from Gentner that costs several thousands of dollars ;). The really annoying thing is that you program it over an RS-232 port-- from windows. The rest of the AG software is linux, though... vic and rat (for video and audio) respectively. It's fun stuff... check out accessgrid.org

      --
      -- Is "Sig" copyrighted by www.sig.com?
  13. Re:Texas Instruments Acquires Ditech's Telinnovati by mellifluous · · Score: 2

    From the article:

    Echo-cancellation software algorithms are embedded in programmable DSPs .

    Though the article refers to "software" I think this is still refering to the kind of embedded solution the poster was hoping to avoid.

  14. Forget software, get hardware by ttyp0 · · Score: 3, Informative

    I remember when I worked at Tellabs we had a product, EC-8000 Digital Echo Canceller Might be worth a look.

  15. Searches for echo cancellation software by Seth+Finkelstein · · Score: 5, Informative
    Am I misunderstanding the question? A Google search for "echo cancellation" software turns up quite a bit.

    Notably, a lead such as: http://www.nist.gov/speech/tests/ctr/h5e_97/echoca n.htm

    The echo cancelling software (ec_v2.5.tar.gz) that is applied to telephone data, may be obtained from Mississippi State University.

    The LDC has provided a perl script (mu_ec.perl) that will take a sphere-headered, 2-channel mu-law waveform file as input, apply the MSU/ISIP echo cancellation software, and produce a sphere-headered, 2-channel mu-law waveform file as output.

    Sig: What Happened To The Censorware Project (censorware.org)

    1. Re:Searches for echo cancellation software by stilwebm · · Score: 3, Informative

      This is a good start. Note that the perl script linked to above only provides raw data to the ec.exe binary, but the source code is linked to on that page. Also, there is more information and the source code at http://www.isip.msstate.edu/projects/speech/softwa re/legacy/fir_echo_canceller/. Nevertheless, consider:

      * In running the echo canceller on sparcs (ss20, SPARCserver-1000), it takes between 3 and 4 times realtime to operate.


      Now a Pentium III 800 will probably run it in a fraction of the time for an SS20, say 1/2 realtime to 1/4 realtime. But if it is for a mixing project, there will be several streams to process. I wonder if the cost of having to use a dedicated computer for software processing will outweigh the cost of dedicated DSP hardware?

  16. Re:Hardware Audio Tools (alternative?) by Harley · · Score: 2, Informative

    I was amazed at all the processing going on inside the DSP back when I tested, and later debugged/coded, modems for a living. When you mentioned echo cancellation, it was the first thing that popped into my head.

    A logical extension of this for your application would be to try to get your hands on some source code from a "Soft" modem. The idea was to move the most intensive processing out of the DSP and onto the PC processor since they were, in theory, becoming powerful enough to handle all the operations in real-time. Actual performance of these types of modems is a completely separate story, but the echo cancellation code is out there somewhere. At thing point it should just be a matter of getting your hands on it.

  17. The Analog devices EZ-Kit (a 2181 demo) has it. by Ludwig668 · · Score: 5, Informative

    Check out Analog devices; their 2181 demo has echo cancellation as a part of the included software; source included.

  18. Re:Professionalism by tps12 · · Score: 2

    Is that site for real? The only story I read had like 6 completely clueless comments (e.g., xmms skips because you need a faster hard drive, or because 2.4 is bloated...huh?). While the S/N on slashdot is admittedly low, at least there is a signal in there somewhere.

    --

    Karma: Good (despite my invention of the Karma: sig)
  19. Dictated Echo?! by Viking+Coder · · Score: 2

    We are trying to avoid avoid relying on specific OTC hardware solutions (Emphasis added.)

    Looks like this message was dictated with intermitent echo!

    --
    Education is the silver bullet.
  20. perhaps the reason you can't find it... by ultramk · · Score: 3, Insightful

    ...is because it doesn't exist.

    Realtime processing, AFAIK, be it audio or video, is astonishingly processer-intensive. It doesn't surprise me that DSPs are being used for this reason: they may be the only thing that can cut it in a cost-effective manner.

    i.e. you may be able to build a high-end workstation, and write some real-time software to handle this task, but since it probably wouldn't be able to do anything else at the same time doesn't that qualify as a hardware solution?

    Perhaps instead of going to extreme lengths to remove echos, perhaps you just need to work harder to prevent them in the first place? Pro audio mags have tons of ways to reduce echo and other unwanted effects in small (usually home) studios. Have you looked into this?

    Michael-

    --
    You catch enchiladas by picking them up behind the head and holding them underwater until they don't kick anymore -VeGas
    1. Re:perhaps the reason you can't find it... by blair1q · · Score: 3, Informative

      A DSP is just a CPU with one or twelve little two-step and array-math hacks in it. Any CPU that's 2X faster in FLOPs can do the same thing with ordinary arithmetic code.

      There are lots of new CPUs that are faster than lots of 5-year-old DSPs.

      --Blair
      "But then Microsoft puts the code in a directory somewhere under C:\Windows and kills the market."

  21. I have echo-cancellation software! by jmv · · Score: 5, Interesting

    Look here for my echo-cancellation code:
    http://speex.sourceforge.net/audio/sndio.tg z

    It's bundled with open-sound calls to read and write audio in real-time, while removing acoustic echo from the input. There's not much doc, but the test2.c program is quite simple. Feel free to contact me at jean-marc.valin@hermes.usherb.ca. Note that there's no real project (sourceforge or other) assiciated to it but if you find it useful, I may create one.

    1. Re:I have echo-cancellation software! by jmv · · Score: 3, Interesting

      Two things I forgot to mention:
      1) It works on stereo (of multi-channel) input/output
      2) There's an SSE (float version of MMX) version too

  22. Re:One possible solution... by TuxLuvr · · Score: 2, Informative
    But that link doesn't point to a software solution at all. That's a hardware device, and it doesn't do noise/echo cancelling, it does videoconferencing. I'm sorry to say that you're a little off.

    Whoops! My bad.... I meant to post THIS link...

  23. A possible simpler solution by hidden · · Score: 3, Informative

    1) Use directional microphones, or else throat mikes. This will make the neigbour's microphone only pick some one up very quietly, if at all.

    2)if there is still some echo problem, it should be quiet enough that simple (software) noise gates should solve the problem.

  24. Re:Cut and Paste coders by fishebulb · · Score: 2

    god forbid anyone use the software for something. He doesnt want to rip off the code, he wants to make USE of it.

  25. Flash 6 as a possible solution... by Aquaman616 · · Score: 3, Interesting

    I've been hearing about some new technology from Macromedia that might make your life a *lot* easier. Apparently the Flash 6 plugin supports hooking into both webcams and mics (after the user OKs it) as well as special socket-based connections to a new piece of server software codenamed TinCan. In addition they've talked about the server supporting shared objects as well.

    From what it seems you're able to put code on both the client and server and both are based on ECMAscript. This would let you do a lot more than nearly every other solution I've ever seen. I don't know when the server is supposed to be released, but if you check up on the recent interviews with MMs CTO Jeremy Allaire on C|Net or The Register you'll see that they seem to be hinting that it will be available later this year.

    --
    A|Q|U|A
    1. Re:Flash 6 as a possible solution... by Aquaman616 · · Score: 2, Interesting

      Oh yeah, and duh, it supports echo cancelation there in the Flash plugin.

      --
      A|Q|U|A
  26. You need an acoustic echo canceller by Anonymous Coward · · Score: 5, Informative

    Most solutions offered by Ditech, Telogy, etc. cancel the electrical echo caused by an impedance mismatch 2 to 4-wire hybrids in the analog part of the Old Telephone Network. You seem to develop a packet-based videoconferencing system, which has no hybrid in it, so you must want to cancel acoustic echo, caused by reflection of the sound produced by the speaker-phone on the walls of a conference room.
    This is a very hard problem, because you have to modelize the environment of each conference room. You will have to guess mathematically (with the LMS algorithm for example) the echo response on a tail of at least 128ms for each room, which would take at least a few minutes to one hour on a P4 2GHz system.
    And what about if a door is suddenly closed in the conference room? Or what if the speaker phone is moved? You will have to re-modelize your echo response each time that happens, because the geometry of the room will have changed.
    The solution is surely not a software echo cancellation system, at least not before 2010.
    Think about a hardware solution, DSPs or ASICs (http://www.octasic.com)

  27. Can you use local (lapel / boom) microphones? by jolshefsky · · Score: 2, Interesting
    From my own experience with video conferencing and speaker phones, the biggest problem stems from the balance between getting enough microphone gain to pick up the quietest speaker and reducing both kinds of feedback/echo (single-site feedback / cross-site echo.) The obvious solution is to move each output device closer to its corresponding input device.

    In other words, either (1) exchange the room speakers for earpieces or headphones or (2) exchange the room microphones for lapel or boom microphones. Clearly the degenerate case has everyone essentially speaking into a separate telephone receiver which probably defeats the purpose of the system altogether.

    Of course, it would be way cooler to have a setup where the room microphones are aware of the room speaker output and automatically cancel it out. The trouble is it's way cooler because it's so difficult to do.

    --
    --- Jason Olshefsky

    Karma: Poser (mostly affected by adding this line long after everyone else did)

  28. A list? by Futurepower(R) · · Score: 2


    I'd love to see a list of all the other software you have found.

  29. Those are not echos. by Futurepower(R) · · Score: 2

    But those are not echos. Those are real signals picked up by other microphones. It might be difficult to DSP that.

    1. Re:Those are not echos. by TheSync · · Score: 2

      Those are real signals picked up by other microphones. It might be difficult to DSP that.

      I can't understand what the guy is asking about, but if this is the problem, the true answer is to use directional mics pointed at people's heads, and put a noise gate on EACH MICROPHONE. Infact, if you really want to do good recording, you should have a noise gate and compressor (and perhaps an expander) on each microphone BEFORE it goes into the mixer. Yes, it costs a lot, but you can get an eight channel block of compressor/gates for $2000 or so.

      Alternatively, you can use an automatic mic mixer which picks the loudest mic automagically, but these are really only appropriate for use in a live speach situation, not recording. They tend to sound a bit clunky.

  30. Um..one of each of these... by teamhasnoi · · Score: 3, Informative
    One (good) omnidirectional condenser Mic in center of room; everything will be in phase and mono. Send this signal to a noise gate to cancel out paper rustling, and then a compressor (hard or software). I'd guess a 1:10 (or less), with a threshold of -20db (give or take) and a soft limiter would do it. This will equalize the volumes between the loud drunk salesguy, and the quiet intern. Educate members of meeting that they need to speak confidently.

    I guess I don't see why NOT routing the audio back would be a problem, or maybe I don't understand the question.

    Otherwise, save your paper towel rolls, and hand them out before a meeting. I don't do this for a living, so YMMV.

  31. soft-ware solution. by Hooya · · Score: 2

    well, since you asked for a 'soft'-ware solution, i suggest using foam padding on the walls surrounding your conference room. altho i don't understand why you're so bent on the material being soft. foam is soft and from my very-basic understanding of acoustics, it dampens and reduces echo. wait, oh... that software!?

  32. IBM Has One For License by vivekb · · Score: 2, Informative
    IBM has a software based solution (unfortunately only available as a Windows DLL) that is very impressive. I evaluated it for a project, but it wound up costing too much. Still, you could try contacting their lab in Israel.

    I doubt you will find an open source echo canceller, since acoustic echo cancellation is pretty difficult (and has generated many, many patents). Nearly everyone uses a different, proprietary algorithm.

    If you want to make one yourself, set aside about 10 months.

  33. Re:You need an acoustic... (MOD PARENT UP!) by mrpotato · · Score: 2
    Man, if all AC were that interesting and informative, we would need a reversed filter mechanism...

    Lots of people were modded up in this discussion proposing wrong, irrelevant or incomplete solution. Typical /. ...

    --

    cheers
  34. Echo cancellation on 12 lines of code. by Petrus · · Score: 4, Informative

    #define AdaptationRate 0.99
    // Basic adaptive LMS FIR algorithm.
    float EchoCancellation(float Sample)
    {
    static float History[MAX_ECHO_DURATION+1] = 0;
    int i;
    float AdaptationRate;
    float EchoAmpl;

    for( i=0; iMAX_ECHO_DURATION; i++)
    {
    EchoAmpl = History[i]*Coef[i];
    Coef[i] *= AdaptiationRate*(Sample-EchoAmpl);
    History[i+1] = History[i];
    }

    History[0] = Sample;
    return Sample-EchoAmpl;
    }

    That's all the "basic" science.
    You might find, that for 40kHz and 250ms echo this is too computationally intensive for a single Pentium. You may need some 1200 MIPS.

    You may then:
    1. Use Athalon ;-)
    2. Convert it to pointer arithmetic
    3. Convert it to integer arighmetic
    4. Skip some samples for echo estimation, sometimes
    5. Contact me to use more clever algoritm (IIR?)
    (Petrus.Vectorius@ied.com)

    1. Re:Echo cancellation on 12 lines of code. by Petrus · · Score: 2, Informative

      There is a bug.
      The line:
      Coef[i] *= AdaptiationRate*(Sample-EchoAmpl);
      Should be
      Coef[i] += AdaptiationRate*(Sample-EchoAmpl)*History[[i];

      Otherwise the Coef[i] would always stay at 0.

  35. Use low-tech solutions first. by Lumpy · · Score: 3, Informative

    if you are creating your studio then you need to make the studio fix the problem first, dont try to compensate for a crapy studio in the recording hardware/software.

    #1- Sonex, sonex, sonex. If you dont have sonex or the crappy sonex copy or even just carpet on the walls (Yes wall carpet looks good) along with the roughest texture ceiling tiles you can buy at the home-depot (or better yet the $90,00 a 2foot square city scape audio ceiling tiles) then you are wasting your time. it takes very little to make a room acoustically deadened to the point that properly set up microphones wont pick up any perceptiable echo. (Note: if you have you're mic's set so your artists or voice talent is farther away than 3 inches from the P popping screen then you have it set wrong. also dont let the talent talk quietly, make then talk or sing loud to overcome room acoustics.

    start with the low tech, then add your high tech bandaid filters.

    --
    Do not look at laser with remaining good eye.
    1. Re:Use low-tech solutions first. by Dahan · · Score: 2
      I don't think he really means he has a problem with echoes off the walls... I think he means that when someone on the local side of the conference speaks and his voice is played back though the speakers at the remote side, it'll be picked up by the microphone at the remote side and sent back to the local side. Depending on how loud the speakers are, this could cause a feedback loop.

      I've had the same thing happen when using one of those internet voice chat programs. If one end uses speakers rather than a headset, you'll hear an echo of yourself talking. If both ends use speakers, crank up the volume and have fun with the feedback :0

  36. I've worked in a radio studio by AlaskanUnderachiever · · Score: 3, Informative

    Hell I helped build one. And while there is a LOT of noise cancellation and "echo reduction" software on the market (Cool Edit Pro has a few nice plug ins) the sound quality after applying such a filter could at best be called "fair". Unfortunately your best solution is to find a high quality mic with a bit of noise cacellation (and the higher end ones can be "tuned" with a hardware equilizer) and just suck it up and BUY THE FOAM. I know it's ugly. I know it's a pain in the ass. I know it's only effective if the studio is designed well, but nothing that I have personally seen (well under 40k that is) beats the stuff. Acoustic dampening foam is your cheapest option that will still maintain audio quality to a reasonable degree.

    --
    Find out about my new childrens book: SS Death Camp Criminal Batallion Go To Monte Carlo For The Massacre
  37. The speed of sound at sea level... by Futurepower(R) · · Score: 2

    thorbo is right. The speed of sound at sea level is something like 700 miles per hour (Mach 1). If I've done the math right, that is 1,026.67 feet per second. A 10-foot separation will cause a 10 millisecond delay. I believe a 50-millisecond delay is heard as echo. Can anyone help about this?

  38. Re:C Source code here by vladkrupin · · Score: 2

    the link is interesting though misspelled. Correct would be:
    http://www.isip.msstate.edu/projects/speech/softwa re/legacy/fir_echo_canceller/

    I haven't tried it myself (I obviously know very little about the matter altogether), but it seems to fit the description of the original problem pretty well. Doesn't look like quite a finished product yet, but, nevertheless, very interesting.

    --

    Jobs? Which jobs?
  39. Try minicom by Webmoth · · Score: 2

    In your terminal emulator configuration, deselect "local echo".

    --
    Give me my freedom, and I'll take care of my own security, thank you.
  40. Megaflops in rock-hard real time by Paul+Johnson · · Score: 2
    There are two problems with a software-based echo canceller
    • Its seriously compute intensive. You need two buffers: a circular echo buffer containing the last N samples where N is the sample frequency times the longest echo you want to cancel, and another buffer of N samples which describes the echos you are hearing. The echo cancellation to be applied to each sample is the sum of the products of the elements in the two buffers. For radio you want to be sampling at 20KHz (giving a 10KHz Nyquist cut-off), so if you want to cancel a 0.1 second echo then you are having to do 2K multiplications per sample, at 20KHz, giving 40e6 multiplications per second. Conference phones (the kind of thing that sits on a table) can do this more cost effectively by handling only 8k samples/sec, which gives much saner numbers. In parallel to this you have to be doing a much slower (say, 10 or 20 times per second) bit of DSP to tell you what the echos are as people move around and change the acoustic properties of the room. I'm not sure about how thats done, but it probably involves an FFT somewhere.
    • The whole thing is the hardest of hard real time. The echo correction for each sample has to be fed back into the audio at exactly the right time to be out of phase with the original echo. If you get the time wrong then you will be in phase for at least one frequency in the echo, and that frequency will be amplified around the loop.
    This is simply not a job for stock hardware on stock OS. It needs dedicated DSP. Also I suspect you can save on the DSP by doing the buffers and multiplication in analogue hardware, but I don't know if that is cost effective in practice.

    Paul.

    --
    You are lost in a twisty maze of little standards, all different.