JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
JavaScript
var aCtx = new AudioContext();
var constraints = {
audio: {
echoCancellation: false
}
};
navigator.mediaDevices.getUserMedia(constraints).then(function(stream) {
var microphone = aCtx.createMediaStreamSource(stream);
microphone.connect(aCtx.destination);
})