JSFiddle - React, Tailwind, and code Playground

JavaScript

var context = new webkitAudioContext();

var noise = context.createScriptProcessor(512, 0, 1);

noise.onaudioprocess = function(event) {
	var channel = event.outputBuffer.getChannelData(0);
	console.log(event);
	
    for(var i = 0; i < channel.length; i++) channel[i] = Math.random() * 2 - 1;
};	

noise.connect(context.destination);