  const script = new Blob(
            [`registerProcessor("${workletName}", ${AudioRecordingWorklet})`],
            {
              type: "application/javascript",
            },
          );

          const src = URL.createObjectURL(script);

          await audioContext.audioWorklet.addModule(src);
          const recordingWorklet = new AudioWorkletNode(audioContext, workletName);

          recordingWorklet.port.onmessage = (ev) => {
            // worklet processes recording floats and messages conve