This release is a pre-release and may not be stable for production use.
Wyoming OVOS STT Bridge
Expose any OpenVoiceOS STT plugin as a Wyoming protocol ASR server for use with Home Assistant, Rhasspy, and other Wyoming-compatible voice pipelines.
┌──────────────────────────────────────┐
Wyoming client │ wyoming-ovos-stt │
(Home Assistant, │ │
Rhasspy, etc.) │ ┌────────────────────────────────┐ │
│ │ STTAPIEventHandler │ │
Transcribe ───────────►│ │ │ │
AudioChunk* ──────────►│ │ AudioChunkConverter │ │
│ │ (→ 16kHz/16-bit/mono) │ │
AudioStop ───────────►│ │ asyncio.to_thread() ──────────►│ OVOSSTTFactory
│ │ STT.execute(AudioData) │ └──> STT plugin
Transcript ◄───────────│ │ │
Describe ─────────────►│ │ Info(asr=[AsrProgram(...)]) │
Info ◄─────────────────│ │ │
│ └────────────────────────────────┘ │
└──────────────────────────────────────┘
Features
- Single
Transcriptresponse: OVOS STT plugins are non-streaming, so the bridge returns the full text in oneTranscript(matching thewyoming-faster-whisperreference). - Automatic audio conversion:
AudioChunkConverterconverts all incoming audio to 16 kHz / 16-bit / mono PCM. - Thread-safe:
asyncio.to_thread()offloads the blockingstt.execute()call so the event loop stays responsive. - Language propagation: The bridge reads
languagefrom theTranscribeevent and sets it on theTranscript. - Error reporting: The bridge sends failures back as Wyoming
Errorevents. - Signal handling: The bridge shuts down gracefully on SIGINT/SIGTERM.
Installation
From PyPI
pip install wyoming-ovos-stt
You also need to install the OVOS STT plugin you intend to bridge, e.g.:
pip install ovos-stt-plugin-server
pip install ovos-stt-plugin-whisper
pip install ovos-stt-plugin-vosk
From source
git clone https://github.com/OpenVoiceOS/wyoming-ovos-stt.git
cd wyoming-ovos-stt
pip install -e .
Configuration
Plugin configuration is read from mycroft.conf under stt.<plugin-name>:
{
"lang": "en-US",
"stt": {
"ovos-stt-plugin-server": {
"url": "https://stt.openvoiceos.com/stt"
},
"ovos-stt-plugin-whisper": {
"model": "base",
"language": "en"
},
"ovos-stt-plugin-vosk": {
"model": "vosk-model-small-en-us-0.15"
}
}
}
The language is taken from stt.<plugin-name>.lang if set, otherwise from lang at the root level.
Usage
# TCP server using public OVOS STT servers
wyoming-ovos-stt --uri tcp://0.0.0.0:7891 \
--plugin-name ovos-stt-plugin-server \
--debug
# Local Whisper STT
wyoming-ovos-stt --uri tcp://0.0.0.0:7891 \
--plugin-name ovos-stt-plugin-whisper
# Unix socket
wyoming-ovos-stt --uri unix:///run/wyoming-stt.sock \
--plugin-name ovos-stt-plugin-vosk
CLI Reference
| Argument | Required | Default | Description |
|---|---|---|---|
--plugin-name |
Yes | none | OVOS STT plugin module name (e.g. ovos-stt-plugin-server) |
--uri |
Yes | none | tcp://HOST:PORT or unix:///path |
--debug |
No | False |
Enable DEBUG-level logging |
--log-format |
No | %(levelname)s:%(name)s:%(message)s |
Python log format string |
--version |
No | none | Print version and exit |
Note:
--uriis required (unlike the TTS and wake-word bridges which default tostdio://) because the STT bridge is designed for persistent TCP connections.
Wyoming Protocol
Transcription flow
Client → Describe
Server → Info(asr=[AsrProgram(name="ovos-stt-plugin-server", ...)])
Client → Transcribe(language="en-US")
Client → AudioStart(rate=16000, width=2, channels=1)
→ AudioChunk (PCM bytes)
→ AudioChunk ...
→ AudioStop
Server → Transcript(text="hello world", language="en-US")
The connection closes after each transcription (single-use handler pattern, matching the upstream wyoming-faster-whisper reference). Audio must be 16 kHz / 16-bit / mono PCM. The bridge converts it automatically.
Supported Plugin Types
Any OVOS STT plugin implementing STT from ovos_plugin_manager.templates.stt:
ovos-stt-plugin-server: proxy to remote STT serversovos-stt-plugin-whisper: OpenAI Whisper (local)ovos-stt-plugin-vosk: Vosk offline speech recognitionovos-stt-plugin-chromium: Chrome/Chromium's Web Speech APIovos-stt-plugin-pocketsphinx: CMU PocketSphinxovos-stt-plugin-whispercpp: Whisper.cpp bindingovos-stt-plugin-fasterwhisper: CTranslate2-accelerated Whisperovos-stt-plugin-google: Google Cloud Speech-to-Textovos-stt-plugin-azure: Microsoft Azure Speechovos-stt-plugin-amazon: Amazon Transcribe
Documentation
Detailed docs live in docs/:
Related projects
- wyoming-ovos-tts: the matching Wyoming bridge for OVOS TTS plugins.
- wyoming-ovos-wakeword: the matching Wyoming bridge for OVOS wake-word plugins.
- ovos-wyoming-docker: Docker images that bundle these bridges.
- ovos-plugin-manager: loads and manages the OVOS STT plugins this bridge exposes.
Credits
Developed by TigreGótico for OpenVoiceOS.
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101135429.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wyoming_ovos_stt-0.2.1a1.tar.gz.
File metadata
- Download URL: wyoming_ovos_stt-0.2.1a1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1626dbc42da7248de142f7dd520dca1c68df1a1e1f8899d57f45ca01a4efe51
|
|
| MD5 |
bbfea0cdd9f72399aa3174a5828e5183
|
|
| BLAKE2b-256 |
e47ff087c7ebcf159cb1094fe712b3ca1d3e7cd4a99f8e011b7e2bb31b45379a
|
File details
Details for the file wyoming_ovos_stt-0.2.1a1-py3-none-any.whl.
File metadata
- Download URL: wyoming_ovos_stt-0.2.1a1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4d1a9148da89eb948426250cbd1b4d04751d2c11702c3646f8520273d6d004e
|
|
| MD5 |
1494170d94ce1b8c20a60035d7cb9b5f
|
|
| BLAKE2b-256 |
b381e86c9b08aa8d3d50c08607db93d9753fc1b548ef2faf1bb905d8aedba0e5
|