Latency tester

Play short clicks through the speakers and time their return through the microphone to measure round-trip latency.

ready

node examples/latency-tester.js
interval=<s>
time between test clicks
rate=<hz>
microphone sample rate (default: 44100)
ch=<number>
input channels (default: 1)
bit=<number>
input PCM bit depth (default: 16)
backend=<name>
@audio/mic backend: miniaudio/auto or process
Graph
Click generator → Destination; Microphone → Analyser → onset detector
Input
Microphone stream, click interval
Output
Round-trip latency (ms)

This is an audio latency test: it plays short clicks through the speakers and times how long the microphone takes to hear them back, reporting the median round-trip latency in milliseconds. Try it in the browser to check a laptop or headset audio latency, or run the Node CLI version against @audio/mic for scripted round-trip latency measurements.