Simple example showing how Web Audio API AudioContext.createMediaStreamDestination can be used to output a stream, in this case to a MediaRecorder instance, to output a sinewave to an opus file.