EnglishTürkçeEspañol中文हिन्दीالعربيةFrançais

Version 0.7.9 is out

Live captions for everything your computer plays

Hammurabi turns system audio and your microphone into captions on screen, translated if you want. It runs on Windows, macOS and Linux, entirely on your machine.

WindowsWindows, NVIDIA RTX 50 seriesWindows, any GPU, with Speaker's voicemacOS (Apple silicon)Linux (x64)

Free and open source. No account. No API key. Audio never leaves your computer.

The Hammurabi caption overlay at the bottom of a video, showing a Turkish line with its English translation underneath

Download

Pick your system, install, run

Windows 10 and 11

hammurabi-windows-x64-setup.exe

Works on any 64-bit PC. The installer sets it up for your user, with no administrator rights needed, and Hammurabi updates itself from then on. SmartScreen may say the app is unrecognized: click More info, then Run anyway.

NVIDIA RTX 50 series

Windows with CUDA

hammurabi-windows-cuda-setup.exe

Runs Whisper and translation on an RTX 50 series card: translated captions a bit over half a second after the words. Needs a recent NVIDIA driver. Older cards use the regular Windows build.

Speaker's voice

Windows with any GPU

hammurabi-windows-gpu-setup.exe

Adds Speaker's voice, which reads each caption in the voice of the person speaking. Needs a GPU with Vulkan and about 1 to 2.5 GB of free VRAM. Its voice model is for personal, non-commercial use only.

macOS on Apple silicon

hammurabi-macos-arm64.zip

Uses the GPU through Metal. Move the app to Applications. It is not notarized, so macOS blocks the first launch: run xattr -dr com.apple.quarantine /Applications/Hammurabi.app, or open it once, click Done, then click Open Anyway in System Settings > Privacy & Security. When you start captions, allow System Audio Recording.

Linux x64

hammurabi-linux-x64.tar.gz

Extract it and run ./hammurabi. System audio needs PulseAudio or PipeWire with pipewire-pulse. Use an X11 session: Wayland blocks always-on-top windows and global hotkeys.

First run. Hammurabi downloads its speech model the first time it needs one: about 300 MB for the CPU default, 1.6 GB for the GPU default. The built-in translation model is about 1.7 GB more, or 5 to 7 GB for the Natural translator, and only downloads if you use translation, which starts off on an English system. Settings marks the models that suit your graphics card, and if you installed the regular build on an RTX 50 series card, it switches to the CUDA build in one click. Downloads resume if they are interrupted.

What it does

Captions for sound that has none

System audio

Films, streams, lectures and calls. If your computer plays it, Hammurabi captions it.

Microphone

Talking to someone in person? Captions appear as they speak, even across a language gap. Or caption both at once.

Optional translation

Into 26 languages with the built-in MADLAD-400 model, or with your own local LLM through Ollama or LM Studio.

Always on top overlay

Captions float above your windows, including borderless fullscreen. Drag them anywhere and style the text.

Tray and hotkeys

It lives in the tray and stays out of the way. Alt+Shift+T toggles captions, Alt+Shift+M moves them.

Fast on a GPU, fine on a CPU

Whisper runs on any CPU, on Apple GPUs through Metal, and on RTX 50 series cards with the CUDA build. Windows 11 can also use Live Captions as the engine.

Natural translator

For games and films: it reads slang and tone where the fast translator goes word for word. Runs on Windows with any graphics card.

Subtitles on screen

A game that shows its own subtitles can be read instead of heard. Names and slang come out as written, and a line is often translated before it is spoken. With Cover the game's subtitles the translation sits right over the game's subtitle and hides it, on screen and on the stream. Windows.

Captions on a stream

Turn on Captions as a web page and add http://127.0.0.1:7460 to OBS as a Browser source. Delay the game by half a second and viewers see each caption as the line is said.

Read aloud

Rather listen than read? Hammurabi can speak each finished caption, the translation if you use one, with the voices already on your computer. It stops listening while it talks, so its own voice never ends up in the captions. When lines come faster than it can say them, it reads quicker and skips any line more than ten seconds old, so it stays with the picture. Pick a voice persona to match the mood: Iris, Ruby, Owen, Miles, Grace or Skye, from calm and slow to quick and bright. Press play on any of them to hear a sample first. Everything stays on your computer.

Sound should not stop at the language you speak. Hammurabi turns every voice on your computer into text you can read, and never sends a second of it anywhere.

How it works

Set it up once, then it stays out of sight

  1. Pick a sourceChoose system audio, your microphone, or both from the tray menu.
  2. Pick a languageLeave it on automatic, or name the spoken language for better accuracy. Turn on translation and pick a target language if you want one.
  3. Press the hotkeyCaptions appear in the overlay. Press Alt+Shift+T again to hide them. The app keeps running in the tray.
  4. Tune it in SettingsSpeech model, translation engine, caption size, colors, background, number of lines and how long they stay. Hammurabi can also start at login.
The Hammurabi settings window with sections for General, Audio, Speech, Translation, Captions and Hotkeys

Privacy

Your audio stays on your computer

Speech recognition and translation both run locally, so nothing you hear or say is uploaded for processing. There is no account to create and no server of ours in the loop. The only network traffic is model downloads from Hugging Face and a check for new versions on GitHub, which on Windows also downloads the new installer. If you choose a local LLM for translation, captions go to that server on your machine. Read aloud uses the offline voices built into your operating system. The code is public on GitHub, so you can check it yourself. The privacy policy has the details.

FAQ

Questions people ask

Is it free?

Yes. Hammurabi is open source under the MIT License. There is no paid tier, no trial and no API key to buy.

Windows says MSVCP140.dll was not found

Versions before 0.7.6 needed the Visual C++ Redistributable, which some PCs do not have. Download the installer again and run it: it installs over the old one and brings that file along.

Does the app come in my language?

Hammurabi speaks English, Turkish, Spanish, Portuguese and Chinese, and opens in your system's language when it is one of them. Change it in Settings > General. Captions and translation work in many more languages than that.

Which download do I need?

On Windows, take the CUDA build only if you have an NVIDIA RTX 50 series card; everyone else takes the regular Windows build. Take the GPU build if you want Speaker's voice. Mac users take the macOS build (Apple silicon only), and Linux users the tar.gz.

Why does Windows or macOS warn me about the app?

The builds are not code signed with a paid certificate yet. On Windows, click More info, then Run anyway. On macOS, use Open Anyway in System Settings > Privacy & Security, or remove the quarantine flag with xattr -dr com.apple.quarantine /Applications/Hammurabi.app.

Does it send my audio anywhere?

No. Whisper runs on your computer, and so does translation. Nothing is uploaded.

How fast is it?

On a modern CPU the default model keeps up with normal speech. With the CUDA build on an RTX 50 series card, a translated caption appears a bit over half a second after the words are said. On a slower machine, pick the tiny or base model in Settings.

Can it caption games?

Borderless and windowed games, yes. Games in exclusive fullscreen on Windows draw over every other window, so the overlay cannot appear on top of them.

The hotkey does not work. What now?

Windows uses Alt+Shift to switch keyboard layouts, which can swallow the shortcut. Change it in Settings > General. On Linux, global hotkeys need an X11 session.

What is the difference from Babil?

Babil captions videos inside your browser. Hammurabi captions the whole computer and your microphone, so it also works for native apps, calls and conversations.

Why the name?

Hammurabi ruled Babylon, and Babil is the Turkish name for Babylon. The desktop app is the sibling of the browser extension.

Read every voice on your screen

Free for Windows, macOS and Linux. Download it, pick a source, press the hotkey.

More from menzo

Other free, open source tools