Dictamic

Fix laptop internal-mic voice recognition accuracy on Linux: PipeWire WebRTC AGC pipeline + monitor GUI (.deb)

About This Project

Dictamic addresses poor speech-recognition accuracy from laptop internal microphones on Linux, particularly on machines with Realtek HDA codecs such as the ALC257. The project explains that the desktop microphone slider maps onto analog gain stages that can saturate the ADC at high settings, producing clipped audio that software cannot repair. It also targets an HDA power-save wake-up pop and aggressive voice-activity gating that clips word onsets. The package sets a conservative analog gain, then routes audio through a PipeWire module-echo-cancel virtual source that applies WebRTC audio processing, including adaptive gain control, noise suppression, high-pass filtering, and echo cancellation. It configures WirePlumber and modprobe settings to keep the codec powered and disable HDA power saving.

The project is delivered as a Debian package that installs PipeWire and WirePlumber configuration files, a modprobe option file, and a GTK application named Dictamic. The application shows pipeline status, provides a live level meter, offers a bypass toggle, and can enable autostart at login. The author reports measurements on a reference laptop over a 30 second speech test, including a reduction from hundreds or thousands of clipped samples to zero and a noise floor change from -34 dB to -54 dB. The repository also includes a build script and tuning guidance for the raw device volume and noise suppression settings.

The project is useful for Linux users who rely on speech-to-text or dictation software with a built-in laptop microphone, and for developers who want a reference for configuring PipeWire audio processing and HDA codec power management. It is most relevant to users on PipeWire-based distributions who have experienced clipping or startup pops with internal microphones.

Project Details

Explore More Projects