how to filter some voice whith java sound

hello all

I attempt to implement a chatroom(like interphone),but has some echo,how to filter it?

MIC(pc1) ->audioInputStream ====>network==>audioInputStream>Speaker(pc2)

MIC(pc2) ->audioInputStream ====>network==>audioInputStream>Speaker(pc1)

can you give me some advice

thanks.

[339 byte] By [sam.xiea] at [2007-11-27 1:41:53]
# 1

Well, it is not a Java-specific issue.

There are three ways, in general, to solve it. The first is to isolate acoustically microphone and speaker. The second is to use switching: when the first is talking, the second can only listen, and vice versa. The third is to use echo suppression filters, which is not a part of Java framework and should be implemented by yourself.

To implement one, you should read some books dedicated to sound processing, or port one of the available algorithms to Java.

MaxBuzza at 2007-7-12 0:57:47 > top of Java-index,Security,Cryptography...
# 2
Note also that the sound suppression algorithms are very complicated, so think twice before starting implementing it.
MaxBuzza at 2007-7-12 0:57:47 > top of Java-index,Security,Cryptography...