Projects · Tools & libraries

X11 Mic Monitor

Stable 2026 Author

A small Python program for X11 and PipeWire, which plays back the current microphone input with a bit of delay while a mouse button is held, or records you and plays it straight back. Used for testing how my voice sounds before I say something.

A simple project I've quickly made that I use for testing how my voice sounds to other people before I actually say anything in games.

  • Hold Mouse5 to hear yourself half a second late, or Mouse5 with Mouse4 to hear yourself with no delay.
  • Hold Windows+Mouse5 to record, and it plays back as soon as you let go.
  • The buttons are grabbed through XInput 2, so other windows never see Mouse5, and a fullscreen game holding the pointer doesn't stop it.
  • It only wakes on mouse buttons, and the PipeWire stream (pw-loopback, pw-record, pw-play) exists only while it's in use.