Android Echo Cancelation via Speex Library

前端 未结 1 638
南笙
南笙 2021-02-10 22:00

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

1条回答
  •  春和景丽
    2021-02-10 22:34

    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);
    

    0 讨论(0)
提交回复
热议问题