Author Topic: record audio from a microphone and avoid capturing playback audio  (Read 335 times)

hani

  • Guest
Hello,

Hello,

I'm currently working on an application where I record and send audio chunks, and upon receiving a chunk, I play it immediately. However, I've noticed that when I play the received audio, it seems to be a recording of the audio being played, resulting in a lower volume .

I'm looking to exclusively record audio from a microphone and avoid capturing playback audio. Is there a way to achieve this using BASS?

Thank you.

Ian @ un4seen

  • Administrator
  • Posts: 26177
It sounds like AEC (Acoustic Echo Cancellation) is what you want. Unfortunately, BASS doesn't include that feature. I haven't tried either of these myself so I'm not sure about the specifics, but if you're using Android, there's an AcousticEchoCanceler effect, and otherwise there's the libspeex library.

   https://developer.android.com/reference/android/media/audiofx/AcousticEchoCanceler.html
   https://speex.org/docs/manual/speex-manual/node7.html#SECTION00740000000000000000

If you can use headphones, that'll be the simplest and best sounding solution.

hani

  • Guest
Yes
Thanks for the information.