Jasper John Cinatad
← All work

Remembrall

Live, offline captions for Discord calls on Windows.

Role
Author
Where
Personal project
When
2026
Built with
C++20, Win32, WASAPI process loopback, sherpa-onnx, CMake
Links
Source on GitHub
Pipeline diagram: Discord audio, process loopback, ring buffer, resampler, ASR queue, streaming Zipformer, transcript.
Illustration Diagram I drew from the source. The values are the defaults in the code.

Problem

I wanted live captions for Discord calls without sending audio to a cloud service and without touching the microphone.

What I built

A small native Windows app that captures only Discord’s audio output and transcribes it on the device with a streaming speech model.

How it works

  • Finds Discord, Discord Canary or Discord PTB and uses WASAPI process loopback to capture just that process. It never opens an input device.
  • Audio goes into a ring buffer of about 500 ms at 48 kHz stereo, is resampled to 16 kHz mono, and feeds a 1 second queue that drops the oldest audio under load. Fresh captions matter more than complete ones.
  • Transcription uses a streaming English Zipformer model (INT8) through sherpa-onnx, on the CPU with one thread so it doesn’t fight Discord for the GPU. A turn ends after 0.8 s of silence.
  • Watches for Discord restarts and audio device changes, has a diagnostics view for latency and memory, and updates itself from GitHub releases.
src/config/configuration.h
size_t capture_ring_capacity_bytes = 48000 * 2 * 4 * 1 / 2;  // ~500 ms @ 48k stereo f32
size_t asr_queue_capacity_samples = 16000;  // 1 second @ 16 kHz mono

Outcome

  • About 4,600 lines of C++ in src, with unit tests for the ring buffer, audio format, transcript manager and versioning.
  • Works fully offline once the model is downloaded.
  • Targets written into the repo: partial text under 300 ms after speech starts, under 700 MB of memory. These are goals, not measurements I am publishing here.