2026-11-26 15:50 UTC

Platypush adds microWakeWord and smarter speech-end detection

state: watchingheat: lowuncertainty: mediumrelevance: mediumlocal-voice-assistant speech-pipelineFabio ManganielloPlatypush

What is this?

On Nov. 19, 2026, Platypush maintainer Fabio Manganiello described changes to his personal voice-assistant pipeline. He added a microWakeWord-based wake-word plugin and reworked shared audio preprocessing for speech-end detection, using Silero VAD by default when available, with WebRTC VAD and energy detection as fallbacks. The pipeline can combine local wake-word detection and local Vosk/Piper components with cloud or compatible local-model options for transcription, responses, and speech output. Manganiello reports that in a synthetic audio test, the new setup ended conversations 1.0–1.6 seconds after speech, versus 6–10 seconds previously. He cautions that tuning used synthetic audio and a few recordings, so results may vary by microphone and room. The primary evidence is his detailed first-party article; the search results offer no independent validation.

Why it matters

This is a practical, open-source integration improvement rather than a new speech model: it targets a common friction in self-hosted assistants—false wake-ups and awkward delays after a user stops speaking. Better turn detection could make local or hybrid assistants more usable on inexpensive hardware, while the modular choices let users trade privacy, latency, and cloud capability. The reported improvement is promising but remains the maintainer’s own, narrowly tested result.

Current assessment

On Nov. 19, 2026, Platypush maintainer Fabio Manganiello described adding a microWakeWord plugin and improving shared speech preprocessing, with Silero VAD as the preferred detector when available and WebRTC VAD or energy detection as fallbacks. He reports that a synthetic test reduced the delay before a conversation ended from 6–10 seconds to 1.0–1.6 seconds after speech. The pipeline offers local components and cloud or compatible local-model options, but his results are not independently validated and may vary with microphones, rooms, and configuration; his illustrated setup uses cloud services for several stages. This is a practical usability improvement for DIY assistants, not evidence of broad adoption or commercial-grade reliability. The Hacker News discussion and engagement update add no material implementation evidence, and its current activity rate is zero after an earlier peak.

Measured heat

now 0 pts/hpeak 14 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 194h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-18 13:00⭐ origin echo-reconstructedThis blog post is the origin. It describes rebuilding the author's Platypush voice-assistant pipeline, including switching from openWakeWord
Fabio Manganiello on blog (echo) · attributed from hn.story.50566261
—
11-19 20:57first on hacker news · published · +31.9hRebuilding my local voice assistant pipeline
todsacerdoti
—
11-19 20:57amplified on hacker news 👑hn.story.50566261
todsacerdoti
peak 127 · 25 comments · 100% of case engagement
11-19 22:20our radar first saw it · +33.4hdiscovery anchor: hn.story.50566261—
pace: p83 vs 2096 stories at the 168h mark (now 194h old) — ahead of chatgpt-blender-direct-control-claim (1.0x), behind ibm-granite-switch41-modular-adapters (1.0x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnRebuilding my local voice assistant pipeline
Retrieved article excerpt

Open article · Retrieved 2026-11-19T22:22:58.071905+00:00

# Rebuilding my voice assistant pipeline <https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline>

[📝](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline.md "Raw Markdown")

### Swapping openwakeword for microwakeword and making voice detection smarter

Author photo
[Fabio Manganiello](https://fabiomanganiello.com)

Nov 19, 2026

[#platypush](https://blog.platypush.tech/tags/platypush)
[#voice](https://blog.platypush.tech/tags/voice)
[#voiceassistant](https://blog.platypush.tech/tags/voiceassistant)
[#microwakeword](https://blog.platypush.tech/tags/microwakeword)
[#openai](https://blog.platypush.tech/tags/openai)

.

- [Wake word detection: a new assistant.microwakeword plugin](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#wake-word-detection-a-new-assistantmicrowakeword-plugin)
- [Speech-to-text: assistant.openai, with a much better ear](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#speech-to-text-assistantopenai-with-a-much-better-ear)
- [Responses and context: the openai plugin](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#responses-and-context-the-openai-plugin)
- [Text-to-speech: tts.openai](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#text-to-speech-ttsopenai)
- [The full configuration](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#the-full-configuration)
- [What changed on the code side](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#what-changed-on-the-code-side)
- [Caveats](https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline#caveats)

I [wrote an article](https://blog.platypush.tech/article/Local-voice-assistant) a couple of months ago describing how I rebuilt my old voice assistant pipeline in [Platypush](https://platypush.tech).

And I wrote earlier articles describing my journey through self-hosted voice assistants - [in 2024](https://blog.platypush.tech/article/The-state-of-voice-assistant-integrations-in-2024) (with [Picovoice](https://picovoice.ai)), [in 2020](https://blog.platypush.tech/article/Build-custom-voice-assistants) (diving into the legacy [`assistant.google`](https://docs.platypush.tech/platypush/plugins/assistant.google.html) integration, the now defunct `assistant.alexa` integration, the now defunct Snowboy integration, the now defunct DeepSpeech integration and Picovoice) and the [original article in 2019](https://blog.platypush.tech/article/Build-your-customizable-voice-assistant-with-Platypush) describing the Google Assistant integration.

For a couple of months I used the voice pipeline described in my latest article as my main driver, but after getting used to the robustness of commercial voice assistants I was unhappy with the high rates of false positives/negatives of my self-hosted pipeline, as well as its lack of robustness in detecting start/end of speech, especially in noisy environments and using cheap microphones.

After a bit of experimentation, I decided to swap and fine tune a few parts, and after a couple of days of trying the results are satisfying enough for me to write a short article about it.

The resulting pipeline is:

HotwordDetectedEvent

SpeechRecognizedEvent

follow-up

Hotword detection  
- assistant.microwakeword (local)

Speech-to-text  
- assistant.openai (cloud)  
- assistant.vosk (local)

Generate response  
- openai (cloud or local)

Text-to-speech  
- tts.openai (cloud)  
- tts.piper (local)

HotwordDetectedEvent

SpeechRecognizedEvent

follow-up

Hotword detection  
- assistant.microwakeword (local)

Speech-to-text  
- assistant.openai (cloud)  
- assistant.vosk (local)

Generate response  
- openai (cloud or local)

Text-to-speech  
- tts.openai (cloud)  
- tts.piper (local)

## Wake word detection: a new `assistant.microwakeword` plugin

Until recently I used [`assistant.openwakeword`](https://docs.platypush.tech/platypush/plugins/assistant.openwakeword.html), which wraps [openWakeWord](https://github.com/dscripka/openWakeWord).

It works, but the project has been quiet for a while and all of its pre-trained models are `v0.1` files from 2023, mostly trained on synthetic speech.

In practice I was getting both false positives (the hotword triggering on background noise) and false negatives (the hotword not detected unless I was close to the microphone).

I added a new plugin, [`assistant.microwakeword`](https://docs.platypush.tech/platypush/plugins/assistant.microwakeword.html), on top of [microWakeWord](https://github.com/kahrendt/microWakeWord) through the [`pymicro-wakeword`](https://pypi.org/project/pymicro-wakeword/) Python bindings.

`microWakeWord` is the engine used by ESPHome and Home Assistant Voice, its models are actively maintained, and the built-in models (`okay_nabu`, `hey_jarvis`, `hey_mycroft`, `alexa`) ship with the package — no download required.

The current official models are provided under the [ESPHome micro-wake-word-models repository](https://github.com/esphome/micro-wake-word-models).

Custom models are supported too: drop a `microWakeWord` JSON manifest (with its `.tflite` model) in the plugin's models directory and reference it by name.

The plugin exposes the same API as `assistant.openwakeword` (same `models`, `detection_threshold`, `frame_duration`, `patience_frames`, `input_device`, `input_volume` parameters, same `list_models` action, same `HotwordDetectedEvent`), so switching is a matter of just changing the configuration to point to the new plugin:

```
assistant.microwakeword:
  models:
    - alexa
```

A few design notes:

- Without an explicit `detection_threshold`, each model uses the `probability_cutoff` from its own manifest (0.9 for `alexa`), which is the value the model was validated against.
- Models already smooth their output over a sliding window, so unlike openwakeword, `patience_frames` defaults to 0 here.
- The audio thread never touches the TFLite models directly: it queues frames (and a reset marker) to the main thread, because `MicroWakeWord.reset()` reloads the interpreter and isn't safe to call concurrently.
- Like `assistant.openwakeword`, the plugin releases the audio device when another assistant plugin starts a conversation, and re-acquires it when the conversation ends.

## Speech-to-text: `assistant.openai`, with a much better ear

`assistant.openai` records audio when a conversation starts and transcribes it through Whisper.

The tricky part has always been *end-of-speech detection*: knowing when the user has finished talking. The previous implementation used a per-frame boolean from WebRTC VAD, and any single frame classified as speech would reset the silence timer. With even a bit of background noise, phrases would only end when the maximum conversation duration was hit.

The audio preprocessing layer (`AudioPreprocessor`, shared by the STT integrations) has been reworked:

- **[Silero VAD](https://github.com/snakers4/silero-vad) as the primary backend** (through [`onnxruntime`](https://onnxruntime.ai), no [PyTorch](https://pytorch.org) required), with WebRTC VAD and a plain RMS-based detector as fallbacks. To get an idea of Silero VAD's performance compared against other solutions for speech activity detection, take a look at the insightful article [*One voice detector to rule them all*](https://thegradient.pub/one-voice-detector-to-rule-them-all/). The Silero model is downloaded on first use into the Platypush workdir and checksum-verified:

```
assistant.openai:
  # auto = silero -> webrtc -> energy, depending on what's installed
  vad_backend: auto
```

- **Hysteresis + sliding window**: a frame becomes speech above the VAD threshold and stays speech until its score drops by a margin, and the per-frame decisions are smoothed by majority vote over a 0.5s window. A single noise burst can no longer keep a conversation alive.
- **Adaptive noise floor**: the background noise level is tracked over time, and frames that aren't louder than `noise_floor_factor` (default 2.0, ~6 dB) times the floor are never considered as speech.

On a synthetic benchmark (Piper-generated phrases mixed with babble and burst noise), the old settings kept conversations open for 6–10 seconds after the speech had ended; the new pipeline ends them 1.0–1.6 seconds after the last word, which is the configured [`conversation_end_timeout`](https://docs.platypush.tech/platypush/plugins/assistant.openai.html#platypush.plugins.assistant.openai.AssistantOpenaiPlugin.start_conversation) plus the smoothing lag.

Since the changes on Platypush have been performed directly in the [`AudioPreprocessor`](https://git.platypush.tech/platypush/platypush/src/branch/master/platypush/plugins/assistant/_audio.py) also used by other native speech-to-text engines, other speech-to-text plugins also benefit from them - e.g. if you use [`assistant.vosk`](https://docs.platypush.tech/platypush/plugins/assistant.vosk.html) for full on-device detection.

## Responses and context: the `openai` plugin

The transcribed phrase is processed by the `openai` plugin, which handles both the API key and the conversation context. By default the assistant renders the response through the configured `tts_plugin`; if the response ends with a question mark, the conversation continues with a follow-up.

Custom hooks can intercept phrases before the default response kicks in — for example, to handle home automation commands locally without an LLM round-trip:

```
from platypush import run, when
from platypush.message.event.assistant import SpeechRecognizedEvent

@when(SpeechRecognizedEvent, phrase='play (the)? music')
def play_music():
    run('music.mpd.play')
```

And the hotword event is wired to the conversation start with a similar hook:

```
from platypush import run, when
from platypush.message.event.assistant import HotwordDetectedEvent

@when(HotwordDetectedEvent)
def on_hotword(**_):
    run('assistant.openai.start_conversation')
```

## Text-to-speech: `tts.openai`

Responses are rendered by [`tts.openai`](https://docs.platypush.tech/platypush/plugins/tts.openai.html), with volume and voice configurable. In my tests however [`tts.piper`](https://docs.platypush.tech/platypush/plugins/tts.piper.html) also yielded good results, and it runs entirely locally. In my tests on a RaspberryPi 5 however it added ~3-4s of latency to process the response to audio compared to `tts.openai`.

Since the TTS output goes to the speakers and the wake word detector listens on the microphone, the assistant plugins pause hotword detection while a conversation is active — otherwise the assistant would hear itself.

## The full configuration

```
openai:
  api_key: YOUR_API_KEY
  # Or, for a custom setup using a model provider compatible with the OpenAI API,
  # e.g. a local Ollama instance:
  # base_url: http://localhost:8000/v1
  # model: gpt-5
  # Optional context that can be passed to initialize the assistant
  # context:
  #   role: system
  #   content: You are a useful assistant.

assistant.microwakeword:
  models:
    - alexa

assistant.openai:
  tts_plugin: tts.openai
  conversation_start_sound: ~/sounds/wake_word_detected.wav
  input_volume: 100

# assistant.vosk:
#   model: /path/to/vosk/model
#   conversation_start_sound: ~/sounds/wake_word_detected.wav
#   input_volume: 100

tts.openai:
  output_volume: 80.0

# Or, for a fully local setup that uses tts.piper:
# tts.piper:
#   output_volume: 80.0
```

## What changed on the code side

- **New [`assistant.microwakeword`](https://docs.platypush.tech/platypush/plugins/assistant.microwakeword.html) plugin**: microWakeWord hotword detection through `pymicro-wakeword`, same API as `assistant.openwakeword`, built-in models bundled with the package, custom models via JSON manifests.
- **[`assistant.openwakeword`](https://docs.platypush.tech/platypush/plugins/assistant.openwakeword.html) fixes**: frames are now 80ms (1280 samples, the size openWakeW
todsacerdoti12725
🟧 echo.blog ⭐This blog post is the origin. It describes rebuilding the author's Platypush voice-assistant pipeline, including switching from openWakeWordFabio Manganiello——

Interpretation history

Decision trace