5

I am attempting to listen for chirps (using the webassembly 16kHz-mono 3.1.0 version) while simultaneously communicating with a secondary device over WebRTC which is also listening for chirps.

In a situation where the two devices are connected and transmitting sound to eachother, if I instantiate a Chirp and call chirp.start(), there is no longer any echo cancellation, ie. echoes occur. How can I facilitate for using chirps without having an echo between the two devices?

To clarify, I do not want to transmit the chirp over WebRTC, and intend to filter away that part of the frequency spectrum prior to transmission.

Tested on Chrome 75.0 on multiple OSs using opentok.js for WebRTC.

M.T
  • 4,917
  • 4
  • 33
  • 52
  • 3
    The Chirp WebAssembly SDK disables any audio processing by the browser when issuing the getUserMedia request. Just out of interest, is echo cancellation enabled if you start Chirp before your WebRTC library? – joextodd Aug 01 '19 at 13:12
  • @joerobot Ah that explains it. Regarding your question, order does not make a difference. I presume this is because opentok does not set any constraints, while chirp does – M.T Aug 01 '19 at 14:21

1 Answers1

3

Setting constraints in opentok should resolve your issue.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
joextodd
  • 694
  • 4
  • 9