VScrybe
Voice notes to text, right on your own computer.
- Role
- Design and engineering, start to finish
- Built with
- Tauri 2, Rust, OpenAI's open Whisper models
- Runs on
- Linux, macOS and Windows
- License
- MIT, free
- Links
- vscrybe.dalgoridim.comGitHub
Half my conversations arrive as WhatsApp voice notes. I wanted to search them, quote them and skim them without sending anyone's voice to a server I don't control. VScrybe runs Whisper on your own computer. These are four of the small parts.
A timestamp you can click
Every line starts with the second it was said. Click it and the note plays from there, and the line being spoken stays lit while it plays. Starting one note pauses every other. You can listen while a note is still transcribing, and when the text arrives and the card redraws, playback carries on from the same second instead of stopping.
Nothing starts until you press Send
Files you add wait in a tray above the composer until you press Send. Listen to one first, remove it, or add the same file twice and be told it's already there. The tray lives in the browser's IndexedDB, so it's still there after a restart. I dropped the "Adding N voice notes" overlay: the copies are local and finish almost at once, so it only flashed on screen.
Lines Whisper made up
Whisper invents text when there's little to hear: "Thank you.", "You" and "Shh." turned up as lines in quiet and noisy stretches. Filtering those phrases everywhere would delete real thanks, so they're only dropped when the model already doubts there's speech, or the burst is under a second and a half. Lines with no words at all, a lone ".", go too.
const SHORT_BURST: usize = RATE * 3 / 2;
const PHANTOMS: &[(&str, &[&str])] = &[(
"en",
&["you", "thank you", "thank you very much", "thanks",
"thanks for watching", "thank you for watching", "shh", "shhh"],
)];
…
let doubtful = attempt.no_speech_prob > NO_SPEECH_LIMIT
|| chunk.len() < SHORT_BURST;
found.retain(|s| s.text.chars().any(char::is_alphanumeric)
&& !(doubtful && is_phantom(&s.text, &language)));The bigger loss was silent. When Whisper ended a 30-second window after its first sentence, the rest was thrown away; one test note lost 19 seconds. Decoding now resumes from the last timestamp, retries low-confidence output at rising temperatures and discards repetition loops. Every encoding of the same note now gives 144 to 150 words, where it gave 99 to 136.
The same engine, as a command
The app's binary is also a command line tool. Point it at files or a whole folder and it writes a .txt beside each recording, skipping any that already have one, so a folder of voice notes can be kept up to date by running the same line again.
$ vscrybe transcribe --helpTranscribe files or folders, writing a .txt next to eachUsage: vscrybe transcribe [OPTIONS] <PATHS>...Options:-m, --model <MODEL> small (Fast), large-v3-turbo (Accurate), or a model you added (see `vscrybe models`) [default: small]-l, --language <LANGUAGE> Language spoken in the recordings, as a code such as en, fr or yo [default: en]-t, --timestamps Prefix each line with [m:ss]-f, --force Redo files that already have a .txt--stdout Print transcripts instead of writing files-h, --help Print help
Its progress knows where it's printing. In a terminal it rewrites one line in place, with an estimate of time left. Piped into a log, that would be thousands of carriage returns, so it prints a plain line every 10% or every 30 seconds instead, and ends each file with how long the audio was and how long it took.
$ vscrybe transcribe jfk.opus long1.opus 2>&1 | cat... jfk.opus100% 0:11 / 0:11 jfk.opusdone jfk.txt 0:11 of audio in 0:09 (1.2× real time)... long1.opus0% 0:00 / 0:33 long1.opus66% 0:22 / 0:33 long1.opus100% 0:33 / 0:33 long1.opusdone long1.txt 0:33 of audio in 1:00 (0.5× real time)
It's free for Linux, macOS and Windows, and nothing you transcribe leaves your computer. Download VScrybe