Home / use case

Memoria: local Whisper and Gemma 3 4B turn a family voice memo into a keepsake

At a glance
Models & engines
faster-whisper running Whisper small on CPU with int8
Gemma 3 4B IT QAT served through llama.cpp
Key gotcha
A small model can produce a plausible-sounding quote that was never said, which is why the post-generation quote check exists.

What they built

Memoria is a local oral-history archivist. You give it a family voice memo and it returns a structured keepsake: the full transcript with timestamps, the people, places and time references mentioned, themes and a short summary, verbatim quotes checked against the transcript, and three questions to ask in the next conversation.

He built it because a recording of a grandparent is not ordinary prompt data: it can hold names, addresses, health details and stories a family never meant to publish. Both speech recognition and language understanding run locally, so the recording and transcript never leave the machine for inference.

Results are exported as JSON and Markdown, and there is a small web interface with a playable demo recording. The bundled 58-second demo story is synthetic and narrated with TTS so no private recording is exposed.

Setup

  • faster-whisper running Whisper small on CPU with int8
  • Gemma 3 4B IT QAT served through llama.cpp
  • A FastAPI web demo with a concurrency lock and a 25 MB upload limit, plus a CLI
  • No API key or account; the code is MIT-licensed on GitHub (jeffreyturov-dev/memoria-local)

How it works

  1. Whisper turns the voice memo into a transcript with segment timestamps.
  2. Gemma receives only the transcript and must produce eight fields: title, summary, people, places, time references, themes, quotes and follow-up questions. Temperature is zero, missing evidence becomes an empty array, and the prompt forbids adding facts.
  3. A deterministic check then drops any quote that does not appear in the transcript after normalizing only whitespace and letter case.
  4. The original transcript always stays next to the generated card so a family can review the source.

Results & numbers

  • Unit tests passed 6 of 6.
  • On the 57.79-second demo audio, a full CLI run from audio to archive took 33.36 seconds, and a public web run through the tunnel took 29.47 seconds.
  • All 3 displayed quotes were found in the transcript.
  • With HTTP_PROXY, HTTPS_PROXY and ALL_PROXY pointed at a dead localhost address, the cached-model pipeline still produced the transcript and memory card.

Gotchas

  • A small model can produce a plausible-sounding quote that was never said, which is why the post-generation quote check exists.
  • Names can be misheard: the demo script says Mateo but Whisper wrote Matteo, and the card follows the transcript.
  • Memoria does not fact-check its summary, so human review stays essential, and you should only archive someone's story with their consent.
  • The trade-off for local inference is CPU latency.
“The recording and transcript never leave the machine for inference.”— Jeffrey Turov

Do it yourself

  1. Clone jeffreyturov-dev/memoria-local and follow its setup instructions.
  2. Download Whisper small (faster-whisper, int8 on CPU) and a Gemma 3 4B IT QAT build for llama.cpp.
  3. Run the CLI on the bundled synthetic demo audio first and compare with the example under demo/output/.
  4. Record a family member's story with their consent and run it through the CLI or the FastAPI page.
  5. Read the transcript next to the memory card, fix misheard names, and save the JSON and Markdown keepsake.
def verify_quotes(card, transcript):
    normalized_transcript = normalize_words(transcript)
    verified = []
    for quote in card["quotes"]:
        if isinstance(quote, str) and normalize_words(quote) in normalized_transcript:
            verified.append(quote.strip())
    return verified
Source: Jeffrey Turov (DEV Community) · Published 2026-10-27 · Added 2026-10-27. This write-up summarizes the original source; see it for full details.

Similar setups

Séance: local Whisper and Gemma 4 turn a grandmother's Malayalam voice notes into a searchable family archive

Clivin John built Séance, which transcribes and translates his grandmother's voice notes on his laptop, has Gemma 4 write memory cards, and answers questions only with her exact, verified words.

Clivin John (DEV Community) · 2026-10-31

Link Séance: a local Gemma 3 writes grounded epitaphs for the dead links in your bookmarks

Abdul AmberNeel built a command-line tool that checks every link in a bookmarks file, finds the last living Wayback Machine snapshot of dead ones, and has a local Gemma 3 write a two-sentence epitaph only from what the archive kept.

Abdul AmberNeel (DEV Community) · 2026-10-31

Couch Commander: an offline voice remote for YouTube that understands Pidgin

Benny built Couch Commander, which chains openWakeWord, Whisper and Gemma 4 E2B in Ollama on a Mac so spoken commands in English or Nigerian Pidgin control YouTube in Chrome with no internet.

Benny (DEV Community) · 2026-10-26

Hob: an open-source desktop coworker that runs Gemma or gpt-oss locally with llama.cpp and works on your files

Christian at Frigade’s Show HN project Hob is a free MIT desktop app for Mac, Windows and Linux that picks an open-weight model for your hardware, runs it with llama.cpp, and can edit files, run sandboxed Python, search the web, and dictate — all on-device.

Christian / Frigade (Hob) via Show HN · 2026-11-05