#!/usr/bin/env python3 # SPDX-License-Identifier: MPL-2.0 """Play a quiet test tone and measure microphone PCM; retain no recording.""" import json import math import struct import subprocess import time def main(): report = {'recordedAtUnix': time.time(), 'recordingRetained': False, 'scope': 'Physical PulseAudio endpoints, not in-call audio'} # Use a per-stream volume; leave the user's sink volume and mute unchanged. tone = b''.join(struct.pack('