Live Captions That Actually Survive Loud Cafes & Group Tables
Built by a deaf and mute maker because off-the-shelf captioning tools work fine in a silent bedroom, and collapse the second espresso steam, restaurant music, clattering plates, or nearby conversations enter the room.
Run Speech Bridge Locally on Windows
The standalone Rust binary (speech-bridge.exe) is only ~630 KB because it dynamically loads its neural speech models and portable CUDA libraries from local subfolders.
Instead of making you install Python, Conda, or the NVIDIA CUDA Toolkit by hand, we bundled a one-click installer (Setup.bat) so going from download to live captions takes just three clicks:
Download Speech Bridge
Bundle speech-bridge.exe, Setup.bat, setup.ps1, and hotwords.txt into a single ZIP (Windows 10/11 64-bit; NVIDIA GPU recommended, CPU fallback supported).
Auto-Fetch Models & GPU DLLs
Double-click Setup.bat. It automatically downloads and verifies the portable sherpa-onnx CUDA runtime, NVIDIA CUDA 12 / cuDNN 9 DLLs, neural models, and llama.cpp into local folders, then creates a Desktop shortcut.
Open speech-bridge.exe
Setup.bat launches speech-bridge.exe automatically once downloads finish (or double-click the new Desktop shortcut anytime). Pin it to your taskbar, verify RX: ARMED is green, and start captioning 100% offline.
▸ Inspect Every Offline Model & Portable Runtime Fetched by Setup.bat (~2.7 GB total, 100% local) Click to expand
| Component | Local Folder | Approx. Size | Role |
|---|---|---|---|
| sherpa-onnx CUDA 12 + cuDNN 9 DLLs | runtime/sherpa-cuda/lib/ |
~380 MB | Portable GPU ONNX Runtime + NVIDIA math libraries (no system CUDA Toolkit needed) |
| NVIDIA Parakeet TDT 0.6B v2 FP16 | models/parakeet/ |
~1.20 GB | Primary English-only GPU speech-to-text engine |
| Silero VAD v5 | models/vad/ |
2.2 MB | Neural human-voice activity gate |
| GTCRN & DPDFNet8 | models/denoise/ |
14.5 MB | Streaming neural background-noise suppressors |
| WeSpeaker CAM++ | models/speaker/ |
28 MB | Online voice-fingerprint clustering for [SPK 1..N] labels |
| Qwen2.5-1.5B Q4_K_M + llama.cpp CUDA | models/llm/ & runtime/llama-cuda/ |
~1.08 GB | Optional safety-guarded phonetic post-correction with custom hotwords.txt |
Examine the Speech Bridge UI (Hover Any Button for Tooltips)
This is a simulated, non-working UI replica of the native Rust Win32 desktop app so you can explore the layout in your browser (it does not run the real offline CUDA neural captioner or cloned voices).
Hover any button or badge to read what it does, switch the pre-scripted noisy-room scenarios below to preview how Legacy CPU captions compare against the GPU neural pipeline, or type a reply on the right to see the TTS Echo Gate and word-by-word highlighting in action. To run the real app, download SpeechBridge.zip above.
How Sound Becomes Accurate Captions in 7 Stages
Instead of dumping raw laptop mic audio into a single lightweight CPU model, Speech Bridge processes every 32-millisecond slice of sound through a zero-allocation Rust pipeline that uses both your CPU and GPU FP16 Tensor Cores for what each does best.
Multi-Mic Active-SNR Fusion
Captures 1 mic or 2+ mics simultaneously via Windows WASAPI. Every 32 ms it scores each mic's SNR and crossfades seamlessly to whichever mic is closest to the active speaker.
0 heap allocs · [i16; 512]Automatic TTS Echo Gate & Word Tracking
When you type a reply and press Enter, Piper TTS speaks aloud while bolding and underlining each spoken word in real time, and an atomic gate mutes incoming mic frames (+320 ms reverb tail) so your own voice never echoes into HEARD.
Streaming Neural Denoisers
Choose on the fly: GTCRN (ultra-fast 0.5 MB cafe cleaner), DPDFNet8 (deep music & dish clatter suppressor), VoxLock (target-speaker extraction that locks onto 1 person's voice after 3s), or OFF when nearby voices overpower your partner.
O(1) per 32 ms chunkSilero VAD v5
Replaces brittle volume thresholds (which trigger on fans and clattering forks) with a neural Voice Activity Detection model that opens cleanly with a 320 ms pre-roll so the first syllable is never clipped.
<0.2 ms · CPU RNNParakeet TDT 0.6B FP16 (GPU)
Runs NVIDIA's flagship English-only FastConformer-TDT model directly on GPU FP16 Tensor Cores (plus Distil-Whisper Large-v3.5 as an optional challenger). LocalAgreement-2 locks confirmed words in bright text while keeping the last 1 to 2 trailing words amber so captions never jump.
~198 ms · 2.26 GB VRAMWeSpeaker CAM++ Speaker ID
When a turn finishes, a 28 MB speaker diarization network computes an L2-normalized voice embedding and clusters voices
online via cosine similarity, coloring each person [SPK 1], [SPK 2], [SPK 3].
Qwen2.5-1.5B Phonetic Fix
Runs asynchronously via llama.cpp after a sentence commits, using the last 5 turns plus your custom
hotwords.txt names list to fix subtle phonetic slips. A deterministic ≤30% edit-distance
guard rejects any rewrite so the AI can never invent words.
Proving Accuracy With Real Numbers, Not Guesswork
How do you test speech-to-text accuracy when you cannot hear the room yourself? Our trick: build a standalone
Rust harness (speech-bench.exe) that takes clean speech .wav clips with exact known
scripts, mathematically mixes cafe babble and restaurant music + dishes
on top at calibrated Signal-to-Noise Ratios (clean, +10 dB, +5 dB,
0 dB, and -5 dB), streams them through the exact live decoder in 32 ms chunks, and scores
every word's Word Error Rate (WER) and speaking-to-display latency.
| Engine + Pipeline | Clean WER | +10 dB WER | +5 dB WER | 0 dB WER | -5 dB WER | Avg Infer | 1st Text |
|---|
- O(N²) Re-Denoising Bottleneck: Early tests ran offline denoising on the entire growing utterance every 350 ms. Switching to O(1)-per-chunk streaming denoising with a contiguous FIFO cut overhead by ~100x.
- STFT Phase Comb-Filtering: Mixing 65% delayed denoised audio with 35% undelayed raw audio created a comb filter that raised WER! Pure phase-coherent modes (
OFF/GTCRN/DPDF8/VOXLOCK) fixed it immediately. - Boundary Overlap Duplication: Soft-splitting long monologues at 8.5 s duplicated 3 to 4 words at the seam (13.3% fake WER). Raising the split to 14 s and adding suffix/prefix word deduplication dropped clean GTCRN WER to 1.7%.
- Competing Human Voices vs. Steady Noise: Single-channel denoisers excel against steady music and dish clatter, while in loud competing human babble at
-5 dB, Parakeet raw (DNS: OFF) + Qwen2.5-1.5B outperformed heavy suppression (23.8% WER) because Parakeet's encoder separates overlapping speech natively.
What Every Technical Term Actually Means
Speech AI documentation is full of intimidating acronyms. Here is every concept used in Speech Bridge translated into plain, everyday language, with direct links if you want to read deeper.
Counts every substituted, missed, or extra word compared to the true script. 5% WER means 19 out of 20 words are spot-on (easy to follow effortlessly). 45 to 80% WER means gibberish.
+10 dB = quiet cafe. 0 dB = background music/chatter is just as loud as the person speaking to you. -5 dB = a crowded bar where background noise is noticeably louder than your conversation partner.
Simple volume triggers constantly mistake HVAC hum or clattering dishes for speech. Silero VAD v5 uses a tiny neural net trained on thousands of hours of audio to recognize real human vocal chords.
As someone speaks, the AI updates every ~350 ms. Once two back-to-back passes agree on a word, it locks in bright crisp text permanently, leaving only the last 1 to 2 unfinished words amber until complete.
CPUs process a few numbers at a time; modern NVIDIA GPUs have specialized Tensor Cores that multiply thousands of half-precision (FP16) neural weights at once inside ultra-fast VRAM, running large AI models ~5x faster while sipping ~9.6 Watts of GPU power.
GTCRN & DPDFNet8 strip non-speech noise (music, fans, dishes). VoxLock learns the unique vocal signature of one speaker after 3 seconds and tries to erase other humans talking at nearby tables.
Turns each spoken sentence into a mathematical "voice fingerprint" (embedding). Voices with similar fingerprints
keep the same color badge ([SPK 1], [SPK 2], [SPK 3]) so group conversations stay readable.
WASAPI lets Speech Bridge read multiple microphones simultaneously with minimal delay, while the Goertzel algorithm computes 24 frequency bands (85 Hz to 7.2 kHz) in real time so you can see speech energy without hearing.
Rust enforces strict memory ownership at compile time. Rushing past it with .clone() or
.to_vec() inside 32 ms audio callbacks silently wastes CPU and causes audio stutters, so we
audited and eliminated every hot-path copy.
Why We Chose Pure Rust Over Python (And Eliminated Borrow-Checker Debt)
Most AI speech demos are built in Python with PyTorch, Conda environments, and Electron frontends. For a daily accessibility tool that has to open instantly in a noisy coffee shop and run for hours on laptop battery without glitching, native Rust wins decisively.
✓ Pure Rust + Native Win32 + Dynamic CUDA FFI
- 630 KB Executable: Compiles to a single tiny native Win32 binary with zero browser/Electron overhead and instant cold launch.
- Zero Python Version Hell: Dynamically loads prebuilt C-API shared libraries (
sherpa-onnx-c-api.dll) via Win32LoadLibraryW, working cleanly even on machines with Python 3.14 where PyTorch wheels often break. - Deterministic Real-Time Audio: No Garbage Collector pauses mid-sentence. Fixed
[i16; 512]stack arrays cross the WASAPI audio thread with zero heap allocations. - 100% Shared Live & Benchmark Code: Both the GUI (
speech-bridge.exe) and WAV+noise CLI tester (speech-bench.exe) link the exact same RustStreamDecoderlibrary.
✕ Typical Python / PyTorch / Electron Stack
- 3 to 5 GB Environment Sprawl: Requires pinned Python 3.11/3.12 virtualenvs, pip/Conda dependency trees, and fragile wheel compilation on Windows.
- Slow Startup & Heavy Idle RAM: Importing PyTorch + Electron routinely eats 800 MB to 1.5 GB RAM and 5 to 12 seconds before the window even appears.
- GC & GIL Audio Jitter: Python's Global Interpreter Lock and garbage collector can stall real-time 32 ms microphone callbacks unless pushed into C extensions anyway.
- Drift Between Prototype & App: Often leads to separate Python test scripts that behave slightly differently from the production desktop UI.
Zero-Allocation Ownership Audit (Eliminating Borrow-Checker Appeasement)
AI-assisted Rust code often slips in subtle .clone() and .to_vec() calls to appease the
borrow checker. We audited every file in src/ (verified 0 uses of
Rc<RefCell>, Box::leak, or static mut) and removed all 4 real hot-path allocations:
SyncSender<Vec<i16>> + chunk.to_vec() every 32 ms inside the WASAPI callback
with stack-allocated [i16; 512] Copy frames (0 heap allocations in OS audio callbacks).
Vec<f32> clones (~640 KB x 3/sec) with a single reusable
asr_scratch: Vec<f32> filled in place + copy_within overlap trims.
VecDeque<Vec<f32>> + idle hp_f32.clone() with fixed
[f32; 512] stack rings and in-place enhance_stream_chunk_into().
active_mic_name.clone() on every 30 Hz meter paint tick by formatting directly into a
reusable health_buf: String under the short lock.
Build Your Own Wireless Table Mic for ~$4
Laptop microphones are great for solo use, but in a noisy restaurant or around a group table, placing a tiny wireless mic directly next to each speaker dramatically boosts signal-to-noise ratio. Instead of spending $100+ on commercial conference pucks, you can solder a complete Bluetooth Low Energy (BLE) microphone in two minutes for about $4.
Bill of Materials (~$4 Total)
| Part | Est. Cost | Role |
|---|---|---|
| ESP32-C3 SuperMini | ~$3.00 | RISC-V MCU with 12-bit SAR ADC DMA & BLE 5.0 radio |
| MAX4466 Electret Mic | ~$1.00 | Adjustable-gain analog electret mic preamp |
3-Wire Pinout (Direct Solder)
| MAX4466 Pin | ESP32-C3 SuperMini Pin | Notes |
|---|---|---|
VCC |
3.3V |
Clean 3.3V regulated supply |
GND |
GPIO 4 |
Soft ground driven OUTPUT LOW before ADC/BLE init |
OUT |
GPIO 3 (ADC1_CH3) |
16 kHz continuous DMA sampling (ADC1 only; avoids ADC2/radio conflict) |
Why This Low-Cost Approach Wins
- Zero Driver Bloat & Multi-Mic Ready: Drop three ~$4 mics across a dinner table for ~$12 total; Speech Bridge automatically locks onto whichever person is speaking clearest.
- Plug-and-Flash Simplicity:
esp32-mic-hub.exeauto-detects newly plugged-in ESP32-C3 boards and flashes firmware in one click, then idles in the system tray with near-zero battery impact.
How the BLE Audio & IPC Pipeline Works
- 16 kHz DMA + 80 Hz High-Pass: The ESP32-C3 samples
GPIO 3via hardwareadc_digiDMA (2x oversampled at 32 kHz), removes DC bias, and strips low-frequency BLE TX/room rumble with a single-pole 80 Hz high-pass filter. - 4-Bit IMA-ADPCM over BLE 5.0: Every 30 ms (480 samples) is compressed 4:1 into a 246-byte packet with a 2-byte sequence counter and streamed over a custom GATT Notify characteristic (
C3-BLE-MIC) at 33.3 packets/sec—achieving 0.00% packet loss. - ESP32-Mic Hub → Speech Bridge: Our lightweight native Rust tray utility (
esp32-mic-hub.exe, ~390 KB) shows nearby mics sorted by RSSI signal strength with live VU meters, lets you click up to 3 mics to connect, and pipes decoded 16 kHz PCM frames over loopback UDP (127.0.0.1:47100) straight intospeech-bridge.exe's active-SNR multi-mic switcher—no virtual audio drivers required.
Possible Improvements
- Untethered Battery + USB-C Charging: Add a compact 1S LiPo cell with a USB-C charge/protection board (such as a TP4056 module) so each mic puck runs cord-free on a cafe or dinner table for hours.
- Custom 3D-Printed Enclosure via ProtoTray: Design a fitted tray to hold the ESP32-C3 SuperMini, MAX4466, battery, and charger neatly together using the Parametric ProtoTray Generator, then 3D print a snap-fit lid or desk puck.
- Acoustic & Power Polish: Add a small foam windscreen over the electret capsule to cut AC/breeze plosives, plus a slide switch or BLE-idle deep-sleep mode to stretch battery life between outings.
Clone Your Own Voice by Matching Soundwaves Visually
Because I am completely deaf and never learned to speak, I can't just read a paragraph out loud into a microphone to clone my voice. Instead, RustyVoiceCloner lets me mimic individual vowels and short sounds by eye: it shows three real-time visual graphs (Loudness Envelope, Pitch (F0), and 24-Band Vowel Spectrum) so I can practice each sound until my live microphone wave matches the target wave. Once all 9 sounds are captured, OpenVoice v2 extracts my vocal timbre and applies it to Speech Bridge's offline neural voices.
RustyVoiceCloner so you can try matching soundwaves right here.
To actually extract your voice profile (.pth) and use it in Speech Bridge, you must download and run the native Windows app (RustyVoiceCloner.exe) alongside openvoice_worker\Setup.bat on your PC.
Setup Guide: Clone Your Voice in 3 Steps
Get RustyVoiceCloner
Click below to bundle RustyVoiceCloner.exe and the openvoice_worker/ files into a single ZIP, then extract it next to your speech-bridge folder.
Double-Click openvoice_worker\Setup.bat
Setup.bat creates an isolated Python 3.11 environment with PyTorch CUDA and downloads the OpenVoice v2 converter checkpoints from HuggingFace (~200 MB) without touching your system Python.
Match 9 Cards & Click Generate
Open RustyVoiceCloner.exe, hold Spacebar to match each soundwave until it turns green, then click Generate My Cloned Voices. Restart speech-bridge.exe to speak with your new voices!
Behind the Scenes: Full Voice-Cloning Session (Blooper Reel)
RustyVoiceCloner continuously records the microphone from the moment you open the app until you generate your voice, capturing every trial, error, and wave-matching attempt along the way.
Expressive Vibe Mode & Word-by-Word Voiceshifting
Cloning your own vocal timbre solves the robotic-voice problem, yet standard Text-to-Speech still reads every sentence with the same flat cadence. A deadpan setup and an excited punchline come out at identical speed, pitch, and energy. To make outbound speech actually match a speaker's personality, we pushed Speech Bridge in two new directions: an LLM-directed Vibe Engine and real-time Word-by-Word Voiceshifting.
0 MB Extra VRAM: Qwen2.5-1.5B Prosody Director
- Why Not Suno Bark? End-to-end expressive audio models like Suno Bark require 8 to 12 GB of VRAM and take several seconds per sentence, which cannot run live alongside Parakeet GPU STT (~2.3 GB) and OpenVoice CUDA (~0.9 GB) on a 6 GB RTX 3050 laptop.
- Reusing What Is Already Warm: Speech Bridge already keeps a local
Qwen2.5-1.5BCUDA server loaded for phonetic caption polish. When VIBE: ON is active, that exact same model doubles as a Prosody Director at 0 MB extra VRAM. - Numbers-Only Direction: Rust splits your reply into natural spoken beats first, then asks Qwen only for numeric
SPEED | PITCH | ENERGY | PAUSE_MSscores per beat so the LLM can never drop or alter a single word. - Pure-Rust WSOLA Sculpting: Each beat is synthesized through Piper + OpenVoice CUDA and sculpted in pure Rust using Waveform Similarity Overlap-Add (WSOLA) time-stretching, independent semitone pitch shifting, soft-limited vocal energy, and dramatic pauses.
- Editable Vibe Personas: Click
PERSONA ▾next toVIBE:ON/OFFto switch between 5 built-in personas stored invibes/(Mad Scientist, Deadpan Dry, Warm & Friendly, Hype Storytelling, Calm & Serious) or click+ Add New Persona...to save your own custom style.
Word-by-Word Voiceshifting (CYCLE-Dillon)
- Every Word, A New Cadence: Because
RustyVoiceClonermaps your single vocal fingerprint onto multiple distinct Piper neural base voices (British, American, crisp, warm, rapid), you end up with a whole ensemble of voices that all share your tone color. - Live Seamless Stitching: Selecting
CYCLE-Dillonsynthesizes each word through the next voice in the roster, trims silence margins, stitches consecutive words with a 12 ms linear crossfade, and preserves natural punctuation pauses. - Stackable With Vibe Mode: Voiceshifting runs underneath the Prosody Director, so you can combine rapid per-word voice cycling with LLM-directed pitch arcs, pacing shifts, and comedic pauses in real time.
- Audition It In The Floating Player Too: Use the arrows on the Have Dillon read aloud to you! widget in the top-right corner to switch directly to
Cycle-Dillonand hear this entire page read in voiceshifting mode.
A/B/C/D Live Showcase: Flat vs. Vibe Mode & Single vs. Voiceshifting
One continuous recording comparing all four combinations on the same D&D rant, directed live by Qwen2.5-1.5B using the Mad Scientist persona. Click any chapter to jump straight to that mode.
TEST SCRIPT (MAD SCIENTIST PERSONA)"A bag of flour has always been my weapon of choice in DnD... A cloud of powder is ridiculously versatile and deadly! Even if it's onion flour. Basically all flour is very flammable! And fire solves a lot of problems. Onion flour is probably extra scary, come think of it, due to the amount of sugar in them... Goes hotter and burns longer like sugar water! Borderline improvised napalm!"