Fast and personalized local speech-to-text
open sourceApache-2.0self-hostablefree
Speech-to-Phrase is a fast, local speech-to-text system for Home Assistant voice commands that answers "which of the phrases I know did the user say?" rather than transcribing anything. It combines sentence templates with the names of your Home Assistant entities, areas and floors exposed to Assist, compiles them into a grammar, and decodes audio against it, so recognition stays fast and accurate on modest hardware; it connects to Home Assistant over the Wyoming protocol as an add-on or a Docker container. You can add your own sentences, and phrases from automations' sentence triggers are picked up automatically. The Kaldi-based versions up to 1.4.3 live in this repository; development has moved to the Open Home Foundation's OHF-Voice/apps repository, where a rewrite uses a constrained CTC decoder, Home Assistant's intents sentences and a web UI for choosing which commands to recognise, and hands unrecognised audio back so Home Assistant can fall back to cloud speech-to-text. Apache-2.0 licensed.
Problems it solves
- voice control for my smart home that runs fast on a Raspberry Pi without the cloud
- my local voice assistant mishears device names because general speech recognition doesn't know them
- recognise only the handful of commands I actually use so it's quick and accurate
- say custom phrases to trigger my Home Assistant automations offline
- a low-resource alternative to running Whisper for home voice commands
Features
- recognises sentences built from your Home Assistant entity, area and floor names
- custom sentences and lists
- sentence triggers from automations picked up automatically
- Home Assistant add-on and Docker container over Wyoming
- models downloaded automatically from Hugging Face
- web UI for choosing commands and names (rewrite in OHF-Voice/apps)
- confidence gate that falls back to cloud speech-to-text
- many languages
Limitations
- It isn't a general-purpose speech recogniser: it only recognises the sentences you enable.1
- It only transcribes speech; Home Assistant's own conversation agent decides what a command means and runs it.2
- The rewrite in OHF-Voice/apps serves fewer languages than the Kaldi-based v1.4.3 so far.1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Speech-to-Phrase does.
- Wyoming Faster Whisper Wyoming protocol server for faster whisper speech to text system
- Piper A fast and local neural text-to-speech engine
- Home Assistant Link The official Home Assistant subscription that gives you an easy, secure way to connect to your home from anywhere
- Willow Self-hosted voice assistant firmware for ESP32-S3 devices
- Linux Voice Assistant Voice satellite for Home Assistant using the ESPHome protocol
