Home / use case

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

At a glance
Hardware
A laptop, CPU only
Models & engines
faster-whisper with OpenAI's open Whisper weights (Whisper small) for timestamped transcripts and English translation
Gemma 4 (gemma4:e4b) through Ollama with structured outputs; EmbeddingGemma for optional semantic search
Plain Python with a small standard-library Ollama client; archive stored as JSON, Markdown and audio
Key gotcha
On a real Windows laptop the newest PyAV dropped an argument faster-whisper uses, so Séance pins PyAV.

What they built

The author's grandmother sends him voice notes in Malayalam. Séance transcribes and translates them with an open Whisper model on his laptop, and Gemma 4, also running locally, turns each recording into a memory card: the people and places she mentions, the most vivid moments in her own words, and questions to ask her next time.

He can then ask the archive a question, such as who was there when the family came to Kerala, and get an answer with her exact words, the second she said them, and her voice playing that moment back.

It also builds an offline ofrenda web page for Día de los Muertos with each person's words, places and stories, where every quote has a play button. There is deliberately no "chat with Grandma" bot: any quote that can't be found in the transcript is thrown away.

Setup

  • A laptop, CPU only
  • faster-whisper with OpenAI's open Whisper weights (Whisper small) for timestamped transcripts and English translation
  • Gemma 4 (gemma4:e4b) through Ollama with structured outputs; EmbeddingGemma for optional semantic search
  • Plain Python with a small standard-library Ollama client; archive stored as JSON, Markdown and audio

How it works

  1. Voice note goes to Whisper (timestamped transcript plus English translation), then to Gemma 4 for a memory card, then through a quote check against the transcript, then into the archive, search and ofrenda page.
  2. Ollama's structured outputs force every reply into a JSON schema so parsing doesn't depend on the model behaving.
  3. When Gemma picks a quote, the code finds those words in the transcript with an in-order fuzzy match and shows the transcript's wording and timestamp; answers to questions must cite a passage by quoting it or are flagged.
  4. Search combines BM25 keyword search with EmbeddingGemma via rank fusion, and passages are also tagged with the memory card's headings so questions in different words still match.
  5. Long recordings are carded in parts, merged in code, and given one title and summary at the end.

Results & numbers

  • For a 1 min 19 s Malayalam voice note on CPU, Whisper transcribed it in 123 seconds, translated it in 17 seconds, and Gemma wrote the memory card in 26 seconds.
  • It reads WhatsApp voice notes (.ogg/.opus), call recordings (.m4a, .amr, .3gp) and family videos, making small WAV copies of formats a browser can't play.
  • The repo has 56 tests using fakes for Whisper and Gemma (including a fake Ollama server), passing on Python 3.10 and 3.13.

Gotchas

  • On a real Windows laptop the newest PyAV dropped an argument faster-whisper uses, so Séance pins PyAV.
  • Whisper's device = "auto" tried to load CUDA libraries that weren't installed, so it now defaults to CPU; a seance doctor command checks both and prints the fix.
  • Whisper small's English translation of Malayalam was rough (it heard "Madras" as "Madrasa"); he notes a community fine-tuned Malayalam model is a one-line config change.
  • He says a frontier API would summarize long, chaotic conversations and translate Malayalam better, but privacy and permanence mattered more for a family archive.
“The one thing it will never do is put words in someone's mouth.”— Clivin John

Do it yourself

  1. Install Ollama and pull a Gemma 4 model such as gemma4:e4b.
  2. Install faster-whisper (pin PyAV if you hit errors) and run it on CPU unless you have CUDA set up.
  3. Transcribe each voice note with timestamps, using translate mode if you want English alongside the original language.
  4. Ask Gemma for a memory card in a fixed JSON schema using Ollama's structured outputs.
  5. Match every quote the model returns against the transcript and discard any that aren't there.
  6. Index passages for keyword (and optionally embedding) search so you can ask questions and jump to the timestamp in the audio.
Source: Clivin John (DEV Community) · Published 2026-10-30 · Added 2026-10-31. This write-up summarizes the original source; see it for full details.

Similar setups

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

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

Jeffrey Turov built Memoria, an oral-history archivist that transcribes a family voice memo with Whisper and has Gemma 3 4B in llama.cpp pull out people, places, themes, verified quotes and follow-up questions, all on a local CPU.

Jeffrey Turov (DEV Community) · 2026-10-27

Hearth: a household assistant on Ollama, and proving nothing leaves the house

Hearth answers family questions from manuals and papers with citations, handles voice, notes and reminders, and runs on one home computer; its builders tested small models, prompt injection, and three ways of proving no data leaves.

DEV Community (WeekendAiProjects) · 2026-11-23

LectureAI: local Whisper and Gemma turn lecture recordings into notes

Aman Kumar built LectureAI, which transcribes Hindi, English or Hinglish lecture recordings with local Whisper and has Gemma in Ollama produce a summary, topic timeline, likely exam topics, notes, flashcards and deadlines.

Aman Kumar (DEV Community) · 2026-10-27