Simple wake word and stt component
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-25 00:33:10 +01:00
transcriber Migrate to uv with --extra, and add nemotron linto model as alternative 2026-11-25 00:29:42 +01:00
.gitignore Initial commit 2026-11-24 23:34:43 +01:00
.python-version Migrate to uv with --extra, and add nemotron linto model as alternative 2026-11-25 00:29:42 +01:00
consts.py Migrate to uv with --extra, and add nemotron linto model as alternative 2026-11-25 00:29:42 +01:00
LICENSE Initial commit 2026-11-24 23:34:43 +01:00
main.py Migrate to uv with --extra, and add nemotron linto model as alternative 2026-11-25 00:29:42 +01:00
microphone.py Send message to mqtt broker 2026-11-25 00:06:46 +01:00
mqtt.py Send message to mqtt broker 2026-11-25 00:06:46 +01:00
pyproject.toml Migrate to uv with --extra, and add nemotron linto model as alternative 2026-11-25 00:29:42 +01:00
README.md Update README.md 2026-11-25 00:33:10 +01:00
uv.lock Migrate to uv with --extra, and add nemotron linto model as alternative 2026-11-25 00:29:42 +01:00

Dumbo

Simple Wake-word and STT component.

Listens to the microphone, waits for the wake word, transcribes the command that follows and publishes it on an MQTT topic.

Installation

Dependencies are managed with uv. Each transcription engine is an optional extra, install the one(s) you need:

uv sync --extra whisper                  # faster-whisper
uv sync --extra linto                    # linagora/linto_stt_fr_fastconformer (transformers + torch CPU)
uv sync --extra whisper --extra linto    # both (or --all-extras)

uv sync removes anything not requested: switching from --extra whisper to --extra linto uninstalls faster-whisper.

Usage

uv run main.py                         # default engine (TRANSCRIBER in consts.py)
uv run main.py --transcriber linto

Transcriptions are published on MQTT_TOPIC as JSON:

{"text": "allume la lumière", "timestamp": "2026-11-25T10:32:05.123+01:00"}

Settings (wake word, thresholds, models, MQTT broker) are in consts.py.

Managing dependencies

uv add <package>                       # core dependency
uv add --optional linto <package>      # dependency of an extra
uv remove --optional linto <package>

Adding a transcription engine

  1. Create transcriber/<name>.py with a load() function returning transcribe(frames) -> str.
  2. Register it in ENGINES in transcriber/__init__.py.
  3. Add its dependencies as an extra: uv add --optional <name> <package>.

Lint

uvx ruff check --fix .
uvx ruff format .