Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chirp and WebRTC simultaneously - no echo cancellation

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.

like image 677
M.T Avatar asked Oct 16 '22 12:10

M.T


1 Answers

Setting constraints in opentok should resolve your issue.

like image 118
joextodd Avatar answered Nov 13 '22 03:11

joextodd