AudioGraphBuilder.monitor() method
A local audio-out MONITOR sink: play this point of the graph on a local output device (operator monitoring, "listen in at any point"). A tap — it passes audio through, nothing downstream. device is an output device name from hardware info’s audioDevices (omit/"" = default). Both the device and enabled are runtime-tunable via AudioGraphNode.setParams() (device / enabled), so you can start/ stop and re-point monitoring live without rebuilding the graph. Returns the node so you can target it with setParams.
Signature:
monitor(input: AudioNode, opts?: {
device?: string;
enabled?: boolean;
volume?: number;
}): AudioNode;