OpenSilence
Open-source technology for silent speech recognition.
Download for Mac · Mac setup guide
The Apple-silicon menu bar app uses your camera to enter silent English dictation
or personal commands into your editor. Press ⌘⌥⇧D to start and finish a take,
then press ⌘⌥1, ⌘⌥2, or ⌘⌥3 to insert a candidate. Recognition runs locally after setup.
OpenSilence is a research toolkit for recording speech-related sensor signals, comparing recognizers and building toward a wearable RF silent-speech interface. It runs locally, with an open recording protocol and a LibreVNA bench adapter.
| Component |
Evidence |
| RF command recognition |
Executed on 3,000 published TU Dresden radar recordings of vocalized German words. Mean held-out-session accuracy was 56.9%. Leave-one-speaker-out accuracy was 2.03%, close to the 2% majority baseline. |
| Silent articulation |
Executed on 600 published facial sEMG recordings from one participant, including silent mouthing and controls. Within-session accuracy was 40.0% and 41.1% for the two electrode setups, with a 16.7% majority baseline. |
| Sequence decoding |
Character-CTC training and decoding run locally. The demo tests unseen text combinations and speakers on synthetic inputs. |
| RF capture |
The LibreVNA adapter is exercised against a local TCP fixture matching the upstream JSON framing. Physical capture and silent wearable RF recognition are pending. |
Project site · Build a prototype · Reproduce the results · Read the recording protocol · Test existing headphones
Teach OpenSilence commands with your camera
On an Apple-silicon Mac, record a few examples of each command with the built-in webcam
or import them from local phone videos. You can choose any text for a command label.
This mode uses video only and runs locally.
bash scripts/setup-visual.sh
runs/visual/.venv/bin/python -m opensilence.personal record runs/my-commands --label "müziği aç"
runs/visual/.venv/bin/python -m opensilence.personal record runs/my-commands --label "sesi azalt"
runs/visual/.venv/bin/python -m opensilence.personal camera runs/my-commands
Press Space to start and finish each take. See personal commands
for video import, two-camera matching, and the benchmark on genuinely silent clips.
On an Apple-silicon Mac, the video-only mode uses the built-in webcam or a phone video. The English research checkpoint runs locally with explicit start and stop controls.
bash scripts/setup-visual.sh
./scripts/visual-camera.command
The true-silent test on SoniSpeech scored 67.1% pooled WER on 40 clips from two sessions. See the results and checkpoint terms.
For a bounded-command prototype with a second sensing channel, see OpenSilence sensor fusion. The bench can use built-in laptop audio or two cameras, and the evaluation reports each sensor alongside their combination.
Try it
Python 3.11+ is required. With uv, run:
uv sync --locked
uv run opensilence demo runs/commands
uv run opensilence command-fit runs/commands/train runs/commands/model.npz
uv run opensilence command-predict runs/commands/model.npz runs/commands/test/d-open-0.jsonl
uv run opensilence inspect runs/commands/test/d-open-0.jsonl
uv run opensilence replay runs/commands/test/d-open-0.jsonl
The demo generates deterministic synthetic sweeps. Use a fresh output directory when rerunning a generator. The repository contains no participant recordings or pretrained weights.
Train a sequence recognizer
uv sync --locked --extra ctc
uv run opensilence demo-ctc runs/sequence
uv run opensilence ctc-fit runs/sequence/train runs/sequence/model.pt --epochs 35
uv run opensilence ctc-evaluate runs/sequence/model.pt runs/sequence/test --require-unseen-text
uv run opensilence ctc-predict runs/sequence/model.pt runs/sequence/test/d-0-0.jsonl
The baseline uses a GRU, character-level CTC and greedy offline decoding. Supply protocol recordings with transcripts to train on your own data. Report separate metrics for known sessions, new sessions, new speakers and unseen references as applicable.
Capture from a bench instrument
Configure LibreVNA-GUI for a regular frequency sweep and enable the local VNA JSON stream. Prepare the take, then run the command with the stream port and sweep point count from the GUI.
mkdir -p captures
uv run opensilence capture-librevna captures/take-001.jsonl \
--port 19543 --points 51 --duration 2 \
--speaker p01 --session bench-a --prompt stationary --articulation control
The port and point count are examples. Start with a shielded, cabled control and measure actual throughput and jitter. See the hardware guide for the setup, bill of materials and validation procedure.
For an acoustic experiment using an existing headphone pair, uv run opensilence acoustic-probe recording.wav measures the recorded 20–24 kHz band. See the headphone audio guide for the recording setup and control comparison.
Development
uv run --locked --extra ctc python -m unittest discover -s tests -v
OpenSilence is licensed under the MIT License. External datasets and hardware designs retain their respective terms. The RF and sEMG adapters consume copies supplied by the operator. See dataset sources and attribution.
评论