Hi,
signal-estimator is a small command-line tool allowing to measure
latency and loss ratio of the signal looped back (somehow) from ALSA
output device to ALSA input device.
I created it to measure the total latency of an Android phone
with a Bluetooth headset.
Link:
https://github.com/gavv/signal-estimator/
-- Victor