AYUSH AT BENCH ⚡
🔥 Soldering Iron: OFF
🔫 Glue Gun: OFF
🌡️ --°C
💧 --%
🫁 OK
AIO Live
← Back to Lab Stack
Tactile Tact Switch & I2S Voice

Hardware push-to-talk debounced interrupt routing 16kHz audio to Groq Whisper and Linux CLI daemons.

Voice & OS Bridge

Hardware Push-to-Talk Desktop Dictation

The Story: Typing terminal commands while testing physical hardware breaks focus. I built a physical tactile PTT switch on Pi 4B physical pin 3 connected to an INMP441 I2S mic. Hold to dictate text; double-tap-and-hold to translate voice prompts into executable bash commands directly in the Linux terminal.

TACTILE PTT SWITCH Physical Pin 3 • Pullup 10kΩ Single / Double-Tap Engine INMP441 I2S MIC MEMS 24-bit 48kHz Audio ALSA DMA Hardware Stream GROQ WHISPER TURBO Cloud LPU Tensor Processing Latency < 180ms Turn Text / Shell Command Mode X11 Event LINUX TERMINAL Direct /dev/uinput Stream Auto-Execute Bash Turns
ParameterEngineering SpecificationDesign Notes
Push-to-Talk SwitchSPST Tactile Microswitch + 10kΩ Hardware PullupDebounce filter: 35ms software refractory window
Acoustic TransducerINMP441 Omnidirectional MEMSSNR: 61 dBA, Sensitivity: -26 dBFS, 60Hz to 15kHz
Audio Bus InterfaceI2S Direct Memory Access (DMA)24-bit PCM mono @ 48kHz downsampled to 16kHz
Inference AcceleratorGroq LPU (Language Processing Unit)Whisper-large-v3-turbo in under 180 milliseconds
OS Text InjectionLinux X11/Wayland Event Driver via xdotoolZero-delay keycode synthesis directly into active window
Total Turnaround< 320ms Key-Release-to-TerminalHands stay on multimeter probes during testing
Signal NameWire ColorSource PinTarget PinProtocol / Notes
PTT Button PinYellowPhys Pin 3Tactile Switch Leg 1GPIO Active-Low push with 10kΩ pull-up to 3.3V
PTT Button GNDBlackPhys Pin 6Tactile Switch Leg 2Ground return for button press contact
3.3V Power RailRedPhys Pin 1INMP441 VDDClean regulated 3.3V rail with 100nF filter ceramic
I2S Bit Clock (SCK)OrangeGPIO 18INMP441 SCKI2S 1.536MHz clock stream generated by ALSA
I2S Word Select (WS)GreenGPIO 19INMP441 WSI2S 48kHz frame synchronization pulse
I2S Serial Data (SD)CyanGPIO 20INMP441 SDI2S Digital microphone audio sample stream
  • Continuous I2S DMA Buffering: INMP441 MEMS microphone streaming raw 24-bit 48kHz audio directly through ALSA soundcard drivers.
  • Dual-Gesture State Machine: Software debounce and timing logic cleanly separates plain dictation from automated shell execution.
  • Instantaneous Groq Whisper: Cloud LPU transcription engine completing full audio turns in under 200 milliseconds.
INMP441 I2S Groq Whisper Turbo xdotool X11 Linux GPIO Python Asyncio
⚛️
Ayush Dubey • Physical AI Assistant
Bilingual (English / हिंदी) • Groq ~180ms
Namaste! I am Ayush Dubey's Physical AI Assistant. Ask me anything about Ayush's hardware builds, his mission to empower makers with Physical AI, or his engineering stack!

आप मुझसे हिंदी में भी बात कर सकते हैं!