← Thu, Nov 19 digest

Rebuilding my local voice assistant pipeline

read article ↗ hn thread ↗

The author details rebuilding their self-hosted voice assistant pipeline in Platypush by integrating microWakeWord and Silero VAD to eliminate false positives and reduce speech-detection latency.

read it A thorough engineering log detailing specific library choices, VAD tuning, and configuration snippets for self-hosted voice pipelines.

summary

The author rewrites their local voice assistant pipeline in Platypush to address poor wake-word accuracy and high speech-detection latency. They replace openWakeWord with microWakeWord for more reliable hotword detection and overhaul the audio preprocessing layer using Silero VAD, hysteresis, and an adaptive noise floor. These changes drastically reduce false triggers and cut trailing silence delays. The setup supports both cloud-backed models and local options like Piper and Ollama.

key points

  1. Swapping openWakeWord for microWakeWord brings actively maintained models and eliminates frequent false positives from background noise.
  2. Integrating Silero VAD with hysteresis, sliding-window voting, and an adaptive noise floor cuts post-speech conversation hang times from 6-10 seconds down to roughly one second.
  3. A short-circuit regex hook mechanism allows instantaneous local home automation commands without triggering an LLM round-trip.

who should read it

Engineers and hobbyists building self-hosted voice assistants on hardware like Raspberry Pi.

discussion warm

consensus

Commenters share enthusiasm for local voice assistant architectures, exchanging hardware tips on repurposing old Echo devices and configuring custom microphone arrays.

pushback

Some note that multi-stage local pipelines suffer from noticeable latency bottlenecks between STT, LLM, and TTS execution.

best comment by stavros ↗

This is really useful, thanks! The other day I bought a small screen and didn't know what to do with it so I made an assistant that talks to my bot:

https://m.youtube.com/shorts/3FseVyAG5uM

I used microwakeword too, and training my own wakeword was pretty simple (basically just recording a few tens of samples). Highly recommended.

I also wanted to be able to issue some voice commands for lights and other things in my home with low latency, so I added a short-circuit plugin that runs right after recognition. If the recognized command matches one of the regexes, it's immediately executed, …

It validates the wake-word choice and details a complementary regex short-circuit trick for executing fast local device commands.

Generated by an LLM from the article and thread. Check the sources before relying on it.