Skip to main content

Mic — Mute / Unmute Mid-Conversation

WhatWhere
Route moduleos/hal/routes/voice.py
POST /voice/mute — stops feeding audio into VAD/STT, ignores micdef mute_mic()
POST /voice/unmute — re-arms the micdef unmute_mic()
Slide-switch driver (physical mic mute on PD1, Intern v2 Pro)os/hal/drivers/mic_button.py — calls mute_mic() / unmute_mic() on GPIO edge
curl -X POST http://127.0.0.1:5001/voice/mute
curl -X POST http://127.0.0.1:5001/voice/unmute

The physical slide switch on the top of the Intern v2 Pro just calls those two endpoints internally — that's the whole pattern for any hardware button you want to bolt on.