leonardoaguiar.com

verbatim

A recording becomes text. The text becomes speech again.

Total, reversible transcription for the terminal. One command turns a video or an audio recording into a single text file with every word and its timing, who speaks, the pauses, breaths, pitch, level, pace and emotion. Another speaks that file again, with whatever you changed in the text, in a voice you choose: cloned from a recording, described in words, or built in. A cloned voice can say any text you write, too. All of it on your Mac.

  • macOS, Apple silicon
  • Free

Documentation · Changelog

  • 1 text file per recording
  • 100 pitch readings per second
  • 6 formats to export to
  • 0 bytes sent anywhere

Everything a recording says, on one timeline.

Not only the words: when each one starts and ends, who says it, how high, how loud and how fast, and what happens in the silences. Written as text you can read, edit and hear again.

One file, and it is text

A score with one line per utterance, a table with one row per word, the melody of the speech in Hz and a copy of the original to compare with. No audio and nothing encoded: open it in any editor, compare two versions, keep it under version control.

Every word on the clock

The words are recognised by Whisper and placed by verbatim's own aligner on a single clock: start, duration, pitch at three points, level, pace and confidence for each one.

Who speaks, and how

Speakers are told apart, overlapped speech is marked and each utterance carries an emotion. Pauses, breaths, hesitations, laughs and coughs sit in the line, where they happen.

Edit the text, hear the edit

Change a word, stretch a pause, raise a pitch, mark a word as louder. verbatim diff shows what you changed, and decode speaks the file again with it.

A collection of voices

Clone a voice from a recording, record your own straight from the terminal, describe one in words, or use one of the four built in. Every clone is checked: it says a sentence that is not in the recording, and a number tells you how close it came. Voices are kept apart from the transcript, and you say which one speaks for each person.

Measured, not promised

verbatim eval compares the original with what comes back: words, voice, timing, pitch, level and pauses, against the limit of the instrument itself, with a history that shows whether a change made it better.

Out to the formats you use

SRT and WebVTT subtitles, Praat TextGrid, RTTM, JSON and plain text, all from the same file.

Offline by construction

After the one-time setup of a version, only verbatim models pull and verbatim update use the network. Every other command refuses any connection that leaves the Mac.

Any text, in a voice you cloned

verbatim say speaks whatever you write in a voice of your collection. Each stretch is spoken twice, and the take that sounds most like the voice is the one that stays.

An interface for all of it

Run verbatim alone and a full-screen interface opens in the terminal, made for the keyboard: every command as a form, every option explained, the command line it stands for and the output as it runs. Recording your voice has a page of its own, one text at a time.

Your recordings never leave your Mac.

Recognition, alignment, speakers, emotion and synthesis all run on models stored on your Mac. A .verbatim file is a transcript and carries no audio. A voice file holds a few seconds of a person speaking, which is what it takes to speak as them: clone voices you have the right to use, and keep those files as you would keep the recordings.

  • No accounts, no servers, no telemetry
  • The network only to download the models and the libraries
  • Every audio file it writes is tagged as synthetic in its metadata

Install

macOS

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

Apple silicon, with Homebrew. The first run downloads the libraries it runs on (about 1.6 GB) and verbatim models pull downloads the models (about 9 GB). After that it runs offline. verbatim update brings new versions.

Requirements

System
macOS 14 or later, on Apple silicon
Memory
16 GB recommended
Disk
About 9 GB of models and 1.6 GB of libraries
Languages
Brazilian Portuguese and English
Reads
Any video or audio ffmpeg can open
Install
Homebrew, which brings ffmpeg and uv along
Updates
brew upgrade
Licence
MIT; each model under its own licence
Price
Free

Questions

Is what comes back the original recording?

No. The file is text and keeps no audio, so decode always speaks it again: every utterance is synthesised and pulled to the timing, pitch and level the file has for each word. With a voice cloned from the same recording it is close to the person, and measurable, but it is a synthesis.

How close does the synthesis get?

On the test recordings, with voices cloned from the same recording, it keeps a voice similarity of about 0.79 (the recording itself scores 1.00), puts 96 in 100 word boundaries within 50 ms of the original and stays within about a quarter of a semitone on the pitch of each word. With a built-in voice the timing and the melody stay nearly as close and the voice is another. verbatim eval measures the same on your own recording.

Which languages does it work with?

Brazilian Portuguese and English. The word alignment has acoustic models for those two, and they are the ones verbatim is measured on.

Does it go online?

Only to download: verbatim models pull fetches the models, verbatim update fetches a new version, and the first run after an install or an update fetches the libraries it runs on. Every other command blocks the network before anything else loads.

Can I edit the file by hand?

That is what it is for. Change the words in the score line, write a pause as (0.80), wrap a word in asterisks for emphasis, or change a number in the row of a word. verbatim diff shows what you changed and verbatim revert takes it back.

What can it not do?

It does not give the recording back, only speech made again from the text. It does not separate music or noise from speech: they are marked on the timeline and do not come back. Overlapped speech is marked, not pulled apart. A quiet laugh or a breath can be missed or get the wrong label, and the emotion is one label per utterance.

How big is the file?

About 50 kB per minute of speech, all of it text. Voices are kept in files of their own, about 0.3 MB each.

Can I use it on someone else's voice?

Only with the right to. A voice file can speak as the person it was cloned from, so treat it as you would the recording. Every audio file verbatim writes is tagged as synthetic, and the licence of the synthesis model forbids impersonation, fraud and disinformation.

How do I install and update it?

With Homebrew, on a Mac with Apple silicon: run the commands under Install, at the end of this page, once. Homebrew installs ffmpeg and uv along with it, the first run sets up the libraries, and verbatim models pull downloads the models. verbatim update brings new versions.

How do I clone my own voice?

Run verbatim voice record me in a quiet room: it asks which language you will read in, turns the microphone on and conducts the whole recording, about eleven minutes of it. It listens to the room, tests the level of your voice, then shows one short text at a time for you to rehearse and read: four in your everyday voice, three in each emotion a file can name (happy, sad, angry, afraid, surprised and disgusted) and three whispered, and last a breath, a laugh, a sigh, a cough and a sob. What came out short, or what you skipped, it asks for again. The voice keeps the clearest 30 seconds of your everyday voice and a reference for each emotion and for whispering, which a decoded file uses for the lines in that emotion. A recording made with any other app works too, with verbatim voice clone me recording.m4a. Either way it ends with a check: the new voice says a sentence that is not in the recording, and a number tells you how close it came. After that, verbatim say speaks any text you write in that voice.

Do I have to remember the commands?

No. Run verbatim alone in a terminal and a full-screen interface opens, where every command is a form with every option explained, all of it from the keyboard: the arrows go through the fields, Enter runs, and Esc three times quits. It shows the command line it runs, so the commands are there when you want them.

Privacy · Terms of Service