Use an AudioWorklet to generate a custom sound using JavaScript.

The AudioContext must be started by a user gesture so use some buttons.

Start Sound Stop Sound

Here is the source code for the NoiseGenerator.