leonardoaguiar.com verbatim
Language

verbatim

Total, reversible transcription for the terminal. verbatim encode turns a video or an audio recording into one text file with everything on a single timeline: the words and when each one is said, who speaks, pauses, breaths and hesitations, the pitch, level and pace of every word, the melody of the speech, the emotion of each utterance, laughs, coughs and music. verbatim decode takes that file alone and speaks it again, with whatever you changed in the text. The file is text from the first line to the last: no audio is kept in it and no voice. The voices live apart, in a collection on your Mac: the ones you clone from a recording, the ones you describe in words, and four built-in ones. verbatim say speaks any text in one of them, and verbatim alone opens a full-screen interface with every command as a form. It runs on a Mac with Apple silicon, entirely on that Mac, and it is built and measured for Brazilian Portuguese and English.

Install

With Homebrew, on a Mac with Apple silicon and macOS 14 or later:

brew tap leonardoaguiar/verbatim https://leonardoaguiar.com/apps/verbatim/tap.git
brew install leonardoaguiar/verbatim/verbatim
verbatim models pull

Homebrew installs ffmpeg and uv along with it. Nothing is compiled on your Mac:

verbatim update brings new versions. To remove everything: verbatim env remove (the environment), brew uninstall verbatim, and delete ~/.cache/verbatim, the voices in ~/.local/share/verbatim/voices and the models in ~/.cache/huggingface/hub.

Quick start

verbatim encode interview.mp4                    writes interview.verbatim
verbatim status interview.verbatim               what is inside, what was edited
open -e interview.verbatim                       change a word, a pause, a pitch
verbatim diff interview.verbatim                 what you changed
verbatim decode interview.verbatim -o new.mp3    speech again, in a built-in voice
verbatim voice record me                         records your voice from the microphone
verbatim decode interview.verbatim --voice me -o new.mp3
verbatim say "Any text you write." --voice me -o me.mp3
verbatim decode interview.verbatim --mux interview.mp4 -o new.mp4
verbatim eval interview.mp4                      how close the way back gets

encode reads anything ffmpeg can open, and a recording alone is short for it: verbatim interview.mp4 encodes, verbatim interview.verbatim shows the status. A one minute dialogue takes about 50 seconds to encode on an M5 with 16 GB, and one to two minutes to decode with built-in voices, or two to three with cloned ones, because every utterance is spoken again.

Option of encodeWhat it does
-o FILEWhere to write (default: the media name with .verbatim)
--language pt-BR, en, autoThe language (default: detected)
--speakers NHow many people speak, when you know
--voices [FILE]Also keeps the voice of each speaker, in a .voice file beside the output (or in FILE)
--freshIgnore the work kept from earlier runs on this recording

The interface

verbatim                       opens the interface
verbatim ui interview.verbatim opens it on a file

verbatim with nothing after it, in a terminal, opens a full-screen interface, made to be used from the keyboard alone. Every command is there as a task, grouped by what you want to do: Transcribe, Speak, The file, Voices, Measure and This Mac. Up and down choose a task in the list on the left, and Enter goes into it. A task is a form, one line per field:

To clone your own voice, open Record your voice: it records you from the microphone. Clone from a file is for a recording you already have (an audio or video file, or a .voice file) and asks for that file.

Record your voice is conducted on a page of its own: the language comes first (the texts are in it), then the name, and Start recording. From then on, each text is on screen to rehearse aloud; space records it, and space again, or a moment of silence, ends the reading, while a meter shows your level. s skips a step (it is asked again at the end), r reads again what came out short, and Esc stops the session without keeping anything. Cloning a voice well, below, says what it asks for and why.

KeyWhat it does
↑ ↓Choose a task; in a form, go through the fields to Run
EnterOpens a task; in a form, runs it from any field
← →Change a choice
SpaceSwitches an on and off field; in Record your voice, records and ends a reading
Ctrl+RRuns the task
Ctrl+SStops what is running
/ or Ctrl+PSearches every task and every option
EscGoes back to the list of tasks, or out of a window
Esc Esc Esc or Ctrl+QQuits (it asks first when something is running)
F1Shows the keys

The interface runs the same commands described below, one at a time, and writes nothing to the clipboard. When the output is not a terminal (a pipe, a script), verbatim alone prints the help.

The file

A .verbatim file is text, in UTF-8, and nothing else: no audio and no encoded block. A minute of speech is about 50 kB. It has these sections:

The score

u0003 | 00:10.55 | S2 | neutral 1.0 | I *never* said (0.41) she took the money. (laugh 0.80)
e0001 | 00:31.20 | BED | music       | (music 12.50)

Each line has an id, the start on the clock, the speaker, the emotion with its confidence, and the text. What can appear in the text:

WrittenMeans
(0.41)A pause of 0.41 seconds
(breath 0.30), (laugh 0.80), (cough), (sigh), (cry), (noise)A non-verbal event and how long it lasts
uh..., é...A hesitation, written as it sounds
*word*Emphasis: higher and louder than the speaker's usual
!!word!!, °word°Louder, softer
↑word, ↓wordA jump up or down in pitch from the word before
>some words<, <some words>Faster, slower than the speaker's usual
{word}The recogniser was not sure of this word
[word]Said while someone else was speaking

Lines that start with e are track lines: music (BED) and ambient sounds (AMB) with their start and duration. They are marked, not separated from the speech. The emotion is one of angry, disgusted, fearful, happy, neutral, other, sad, surprised or unknown.

The rows

u0003 S2
#   start    dur   token     f0 in   mid   out     dB  ph/s  conf
   10.550  0.063   I             -     -     -   -8.6  15.9   .99
   10.613  0.310   never      +3.1  +4.2  +1.0   +3.4   9.7   .88
   10.923  0.410   (pause)       -     -     -      -     -     -

For each word: when it starts and how long it lasts (seconds), the pitch at its start, middle and end (semitones from the speaker's median), its level (dB from the speaker's level), its pace (phones per second) and how sure the alignment is. The start of a unit is the start of the utterance plus the durations before it, so changing a duration moves what follows inside the utterance.

Pitch, room and origin

[pitch]
00:10.50  - - - - 187 189 190 192 191 - - - 201 203

[pitch] has 100 readings per second, in Hz, where somebody speaks. Each row starts at a time and covers half a second; - is a reading with no voice. It is the melody decode gives back to each word.

[room] is the level of the room when nobody speaks and its colour in 48 bands, in dB. decode fills the silences with it.

[origin] is a copy of the score and the rows as encode wrote them, every line starting with > . It is what diff compares with and what revert goes back to, so it is not for editing: it carries its own SHA-256, and a file whose [origin] was changed is refused with the line number. A replace across the whole file reaches it too; make your edits in [score] and [words].

Files written by verbatim 0.1 had the recording and the voices inside, in base64. They are still read, without the audio, and verbatim fmt writes them again as text.

Voices

No voice is kept in a .verbatim file. A decode speaks with the voices you give it, and verbatim voice manages the collection kept on your Mac, in ~/.local/share/verbatim/voices:

verbatim voice                                           the collection and the built-in voices
verbatim voice clone ana interview.mp4 --speaker S2      keeps a voice from a recording
verbatim voice record me                                 records you from the microphone and keeps your voice
verbatim voice record me --only sad                      reads one part of a voice again (the parts are below)
verbatim voice design narrator "an old man with a rough, slow voice"
verbatim voice check ana                                 measures how close a voice is to its recording
verbatim voice remove narrator

verbatim status FILE.voice shows what a voice file holds. A voice file is a few seconds of a person speaking: it is the one thing here that can speak as them.

Cloning a voice well

verbatim voice record me                         from the microphone, conducted by verbatim
verbatim voice clone me my-voice.m4a             from a recording you already have

How close a clone gets was measured on 20 public voices, ten in Brazilian Portuguese and ten in English, each cloned from one recording and then made to say sentences the person said in other recordings, compared with those (voice similarity, where 1.00 is the same recording and the person's own speech scores 0.87):

Voice similarity
The person's own speech, another recording0.87
The recording the voice was cloned from, in stretches as short as the sentences0.80
Cloned from one stretch of about 10 seconds0.74
Cloned from 20 seconds0.76
Cloned from 30 seconds0.78
Cloned from 30 seconds, the closer of two takes (what say does)0.79

The second line is the one to read the clone against. The sentences are about five seconds long, and five seconds of a real voice do not score 0.87 either: the recording each voice was cloned from, cut into stretches of that length, scores 0.80 against the person's other recordings, and the clone scores 0.79. In 6 of the 20 voices the clone scored the same as its recording or higher, and in none was it more than 0.05 under it. A clone is as close to a person as the recording it came from, and no closer: by voice it went from 0.66 to 0.87, half of the voices at 0.80 or above, and the one at 0.66 came from the shortest recording, 24 seconds, which scored 0.68 itself. More than 30 seconds of reference gave nothing (on eight of the voices, 0.77 with 45 seconds as with 30), and a longer reference makes every take slower: about twice the time from 20 to 30 seconds. Twenty voices are still a small sample, and a number like this depends on the recording: the check tells you about yours.

Against other cloning models

The same 20 voices, the same sentences and the same instrument, with other open models that clone a voice from a recording on a Mac, each given the reference verbatim made, as much of it as the model takes, and one take:

Voice similarityWords wrong
verbatim, one take0.785.3%
verbatim, the closer of two takes (what say does)0.794.3%
Qwen3-TTS 1.7B, 30 seconds of reference and its text0.7612.4%
Qwen3-TTS 1.7B, one stretch of reference and its text0.747.3%
OmniVoice, 10 seconds of reference (what it takes)0.7412.2%
Chatterbox Multilingual0.735.8%
Fish Audio S2 Pro, one stretch of reference and its text0.705.8%
Higgs Audio v2, one stretch of reference and its text0.6921.8%

Words wrong is what a speech recogniser did not find of the sentence asked for. The voice comes from VoxCPM2; what verbatim adds is which 30 seconds become the reference, the takes it compares with the voice print, and the check. Higgs Audio v2 does not list Portuguese among its languages, and it shows: on the ten English voices alone it scored 0.73 with 2.6% of the words wrong, where verbatim scored 0.78 with 2.6%. Zonos2 was tried too and did not fit in the 16 GB of the Mac the measurements ran on. Neither a larger copy of VoxCPM2 (on eight of the voices, 0.76 where the one verbatim uses gave 0.77) nor choosing between takes of two different models did better than a second take of the same one. Cloning services that run on someone else's computers were not measured: verbatim sends no voice anywhere.

Saying a text

verbatim say "Any text you write." --voice me -o me.mp3
verbatim say --file script.txt --voice narrator -o script.m4a

say speaks any text in a voice: one of your collection, a built-in one (deep, plain, warm, bright) or a .voice file. The text is cut into stretches at its punctuation; each stretch is spoken more than once, and the take that sounds most like the voice stays, among the ones that said every word. For a voice the check found to clone closer that way, one of the takes follows on from the first clip of its recording. The stretches are joined with the pauses the punctuation asks for: a short one after a comma, a longer one after a full stop, the longest between paragraphs.

Before a text is spoken, what is not a word is written out the way it is said, in Brazilian Portuguese or in English: numbers, money (R$ 35,50, $35.50), dates and times (25/11/2026, 14h30, 2:30 p.m.), phone numbers (digit by digit), ordinals, units (3 kg, 12.5%), abbreviations (Dr., Av., St., etc.), e-mail and web addresses, and a sentence written in capitals, which is read as a sentence and not letter by letter. The synthesis stumbles on exactly those: on 24 test sentences full of them, said in two cloned voices, the words a speech recogniser did not find went from 17% to 6%. decode gives the synthesis the same reading of each utterance; the words in the file stay as they were written.

OptionWhat it does
--voice NAMEThe voice: a name of the collection, a built-in voice or a .voice file (default: plain)
--file FILESays a text file instead of the text on the command line
-o FILEWhere to write: wav, flac, m4a, mp3 or opus, by the extension (default: say.wav)
--language pt-BR, en, autoThe language of the text (default: by its words)
--emotion happy, sad, angry, fearful, surprised, disgusted, whisperSpeaks from the reference the voice has of that emotion, or whispered: a voice recorded with voice record has them
--style "calm and slow"How to say it, in a few words. It also moves the voice a little away from the person
--candidates NHow many takes of each stretch to choose from (default 2)
--seed NThe seed of the synthesis: the same seed gives the same takes

At the end say tells how long the audio is and, with a cloned voice, how much it sounds like the voice. A stretch that may be missing a word is listed, to be listened to. The file carries the same synthetic comment as a decode.

Editing

Edit the score, the rows, or both. The rule that settles a disagreement between the two layers:

What you can do:

CommandWhat it does
verbatim status FILEWhat the file holds and how many edits it has
verbatim diff FILEThe edits against the original, utterance by utterance (--exit-code: exit 1 when there are edits)
verbatim fmt FILEWrites the file again in the canonical layout, with the marks that follow from the numbers (--check only tells)
verbatim revert FILE [ids]Takes those utterances, or everything, back to the original
verbatim freeze FILEMakes the edited file the new original: what you edited is spoken once and measured, and gets the numbers of that take (--voice as in decode, -o writes to another file)

Decoding

verbatim decode FILE [-o out.mp3] [--voice VOICE] [--from measured|score] [--mux VIDEO] [--ripple] [--only ids]

The output can be wav, flac, m4a, mp3 or opus, by the extension. A decode is a synthesis: every utterance is spoken again, in the voice of its speaker.

--voice says which voice, and may be repeated:

WrittenMeans
--voice anaEveryone speaks with the voice ana of the collection
--voice S1=ana --voice S2=warmA voice for each speaker: one of the collection, or a built-in one
--voice interview.voiceEach speaker gets their own voice from the voice file of the recording
nothingEach speaker gets the built-in voice nearest to their pitch

--from says how much of the file the speech follows:

OptionWhat it does
--mux VIDEOPuts the audio over the picture of that video (writes an mp4)
--rippleWhen an utterance gets longer or shorter than it was, moves what comes after it. Without it, every utterance starts where the file says
--only u0003,u0007Decodes only those utterances
--seed NThe seed of the synthesis: the same seed gives the same take
--candidates NHow many takes an utterance may get (default 2). Another take is made when the first one aligned poorly or, with a cloned voice, when its voice came out further from the voice than the speaker's other utterances. Among the takes that said the words, the one that sounds most like the voice stays

After the audio, decode says which voice each speaker got and lists what it could not do as asked: a word that could not take the duration without breaking (the limits are 0.45 to 2.5 times), a take that aligned poorly and deserves a listen, a breath or a laugh the voice has no sample of.

What comes back, and what does not

Measuring: eval

verbatim eval recording.mp4
verbatim eval --suite folder/

eval encodes the recording, decodes it at each level with the voices cloned from that same recording, and compares the result with the original. --builtin decodes with the built-in voices instead. It needs the judge model: verbatim models pull eval.

MetricWhat it compares
Words lostWord error rate of a second recogniser on the reconstruction, in points over its error on the original. It reads each one whole and utterance by utterance, and the reading with fewer words wrong counts
Voice similarityCosine between the voice prints of each speaker, original and reconstruction
Word boundary errorWhere each word starts and ends, after aligning the reconstruction again
Word duration agreementCorrelation of the word durations
Pitch contour agreementCorrelation of the pitch, reading by reading, inside the words
Pitch error per wordMedian pitch of each word, in semitones
Level error per wordLevel of each word, in dB
Pauses keptWhether the pauses are where they were

The first column of the report is the floor: the original measured against itself, which is the limit of the instrument. No level is asked to do better than that. Every run goes into a history (~/.cache/verbatim/eval/history.jsonl) and the report shows the change from the run before on the same recording with the same kind of voice; --baseline ID compares with another run, --gate exits 1 when a metric got worse than allowed, --levels measured chooses the levels and --json prints the numbers.

Measured on three test recordings (two of one English voice, 4 and 24 seconds, and a 66 second dialogue of two voices in Brazilian Portuguese), averaged:

measured, cloned voicesmeasured, built-in voicesscore, cloned voices
Words lost (points)-0.7-0.2-0.6
Voice similarity0.790.100.78
Word boundary error10 ms13 ms-
Boundaries within 50 ms96%96%-
Pitch contour agreement0.970.940.54
Pitch error per word0.25 st0.36 st2.00 st
Level error per word0.43 dB0.91 dB1.69 dB

A voice similarity of 1.00 is the recording itself. With voices cloned from the recording it went from 0.74 to 0.87, by recording; a built-in voice is another voice, and the number says so, while the timing and the melody stay close. Words lost below zero means the second recogniser read the reconstruction a little better than the original. The score level is a synthesis from the text line alone, so its timing is not compared. Three recordings are a small sample: measure your own with verbatim eval.

Exporting

verbatim export FILE --to srt|vtt|textgrid|rttm|json|txt [-o out]
FormatWhat you get
srt, vttSubtitles, cut at the pauses; WebVTT carries the speaker of each cue
textgridA Praat TextGrid with a words tier and an utterances tier per speaker
rttmWho speaks when, for diarization tools
jsonEverything in the two readable layers, as JSON
txtThe plain transcript, one line per utterance with its speaker

Models

verbatim models lists them, with what each is for, its size, its license and whether it is on this Mac. verbatim models verify checks the files against the pinned revisions.

GroupModelUsed forSize
coreWhisper large-v3-turbo (MLX)The words and punctuation1.6 GB
corewav2vec2 XLSR-53 PortugueseWord alignment, Portuguese1.3 GB
corewav2vec2 base 960hWord alignment, English0.4 GB
coreNemotron 3 DiarizationWho speaks when, with overlap0.1 GB
coreECAPA (SpeechBrain, MLX)The voice print kept with a cloned voice0.04 GB
coreAST AudioSetLaughs, coughs, music, noise0.3 GB
decodeVoxCPM2Speaking in a reference voice, and designing one3.2 GB
emotionemotion2vec+ largeThe emotion of each utterance1.9 GB
evalParakeet TDT 0.6b v3The second recogniser of eval2.5 GB

Each model is downloaded from its publisher on Hugging Face and keeps its own license; verbatim models shows it. Pitch comes from SwiftF0 checked against Praat, and duration and pitch changes are made with Praat's PSOLA.

Privacy and responsible use

Everything runs on your Mac. The only commands that use the network are verbatim models pull, which downloads the models, verbatim update, which asks Homebrew for a newer version, and the first run of a version, which downloads its libraries. Every other command switches the model libraries to offline mode and refuses any connection that does not stay on the Mac, before anything else loads. There is no account and no telemetry.

A .verbatim file is a transcript: it has no audio and cannot speak as anyone. A .voice file, and each voice in the collection, holds a few seconds of a person speaking, which is what is needed to speak in that voice. voice record uses the microphone only while it records, and deletes the recording once the voice is kept. Clone the voices you have the right to use, and keep those files as you would keep the recordings. Every file decode and say write carries the comment synthetic: generated by verbatim in its metadata. The license of the synthesis model forbids using it for impersonation, fraud or disinformation.

Where things are kept

PathWhat
~/.local/share/verbatimThe environment of the installed version (VERBATIM_HOME changes it; verbatim env shows it, verbatim env remove deletes it)
~/.local/share/verbatim/voicesThe collection of voices, one .voice file each (VERBATIM_VOICES changes it)
~/.cache/verbatimThe work of earlier runs, by recording, the built-in voices and the history of eval (VERBATIM_CACHE changes it; safe to delete)
~/.cache/huggingface/hubThe models

Updates

verbatim update brings new versions: it runs brew upgrade, builds the environment of the new version, removes the old one and checks the models, so the next command starts at once. brew upgrade alone also works, and the first run after it builds the environment. verbatim never checks for updates by itself.

Help and bug reports

Problems and ideas: the support address at the end of the verbatim page. Include verbatim --version, the output of verbatim doctor and, when a command failed, the same command again with -v.