I am just trying to record my voice via mic and listening my own voice from speaker, now the problem is when i m listening my voice, echo sound is added, i tried to cancel/remov
refer to this post: Speex echo cancellation configuration
//send played and recorded shorts into speex,
//returning audio data with the echo removed
filteredShorts = nativeMethod_speexEchoCancel(recordedShorts, recvShorts);
you should process with "recorded frame" and "received frame", i.e. sound from microphone and speaker, rather than same "buffer"
short b[] = speexEchoCanceler.processEcho(buffer, buffer);