Metadata-Version: 2.4
Name: babelscribe
Version: 0.6.1
Summary: Transcribe any audio/video in 99 languages on any GPU (AMD, NVIDIA, Intel via Vulkan; NVIDIA via CUDA; Apple via Metal) or CPU — whisper.cpp with batteries included.
License: MIT
Project-URL: Homepage, https://github.com/phonology024/babelscribe
Project-URL: Documentation, https://phonology024.github.io/babelscribe/
Project-URL: Repository, https://github.com/phonology024/babelscribe
Project-URL: Issues, https://github.com/phonology024/babelscribe/issues
Keywords: whisper,speech-to-text,transcription,subtitles,vulkan,amd,gpu,thai,mcp,mcp-server,claude,codex,srt,speech-recognition,offline,radeon,intel-arc,openai-whisper
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: GPU
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Natural Language :: Thai
Classifier: Natural Language :: English
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: imageio-ffmpeg>=0.5
Requires-Dist: mcp<3,>=2.3; python_version >= "3.10"
Requires-Dist: anyio>=4; python_version >= "3.10"
Provides-Extra: finetune
Requires-Dist: torch; extra == "finetune"
Requires-Dist: transformers; extra == "finetune"
Requires-Dist: huggingface_hub; extra == "finetune"
Requires-Dist: numpy; extra == "finetune"
Provides-Extra: thai
Requires-Dist: pythainlp; extra == "thai"
Provides-Extra: mcp
Requires-Dist: mcp<3,>=2.3; python_version >= "3.10" and extra == "mcp"
Requires-Dist: anyio>=4; extra == "mcp"
Dynamic: license-file

# babelscribe — free, offline speech-to-text and subtitles on any GPU (AMD, NVIDIA, Intel, Apple)

<!-- mcp-name: io.github.phonology024/babelscribe -->

[![PyPI](https://img.shields.io/pypi/v/babelscribe)](https://pypi.org/project/babelscribe/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
[![MCP server](https://img.shields.io/badge/MCP-server-blue)](#use-it-from-an-ai-app-mcp--no-terminal-needed)
**Translations:** [తెలుగు (Telugu)](README.te.md)

**babelscribe turns any audio or video file into subtitles (SRT, VTT) and text, in any of Whisper's 99 languages, on your
own graphics card — AMD Radeon, NVIDIA, Intel Arc or Apple Silicon — or the CPU. No CUDA needed, no cloud, free (MIT).**
It runs OpenAI Whisper through [whisper.cpp](https://github.com/ggml-org/whisper.cpp) with Vulkan, CUDA or Metal, and works
as a desktop app, from the command line, from Python, or from AI apps (Claude, Codex, Antigravity, Gemini CLI, Cursor) as an MCP server.

## Download the app
No terminal needed: make subtitles, translate them and burn them into a video in a window. Take the file for your
computer (from the latest release):

| Your computer | Download |
|---|---|
| Windows 10 or 11 (64-bit) | [**babelscribe-setup.exe**](https://github.com/phonology024/babelscribe/releases/latest/download/babelscribe-setup.exe) |
| Mac with Apple Silicon (M1 or newer), macOS 14 or newer | [babelscribe-macos-arm64.dmg](https://github.com/phonology024/babelscribe/releases/latest/download/babelscribe-macos-arm64.dmg) |
| Intel Mac, macOS 13 or newer (CPU only, slower) | [babelscribe-macos-x64.dmg](https://github.com/phonology024/babelscribe/releases/latest/download/babelscribe-macos-x64.dmg) |
| Linux x64, Ubuntu 22.04 or newer | [.deb](https://github.com/phonology024/babelscribe/releases/latest/download/babelscribe-linux-x64.deb) · [AppImage](https://github.com/phonology024/babelscribe/releases/latest/download/babelscribe-linux-x64.AppImage) |

The app is not code-signed (a certificate costs money every year), so your system warns you the first time:
- **Windows** ("Windows protected your PC"): click **More info**, then **Run anyway**. If the browser holds the download
  back, choose to keep it.
- **macOS**: open the app once and let macOS refuse, then go to **System Settings → Privacy & Security** and click
  **Open Anyway**.

Checksums: [SHA256SUMS-desktop.txt](https://github.com/phonology024/babelscribe/releases/latest/download/SHA256SUMS-desktop.txt). More (Linux needs, uninstalling):
[docs/desktop-app.md](https://github.com/phonology024/babelscribe/blob/main/docs/desktop-app.md#installing).

## Install the command line
```bash
pip install babelscribe          # Python 3.9+
```
On first use babelscribe downloads a prebuilt `whisper-cli` for your system (Vulkan, CUDA, Metal or CPU), so there is
nothing to compile. Which build your hardware gets: [How it works](https://github.com/phonology024/babelscribe/blob/main/docs/usage.md#how-it-works).
Setting it up with an AI coding assistant? Point it to [docs/AI_SETUP.md](https://github.com/phonology024/babelscribe/blob/main/docs/AI_SETUP.md).
Docker: [docs/usage.md#docker](https://github.com/phonology024/babelscribe/blob/main/docs/usage.md#docker).

## Quick start
```bash
babelscribe interview.mp4                 # auto-detects language, picks your best GPU -> interview.srt + interview.json
babelscribe talk.mp4 -f srt,vtt,txt,json  # all formats
babelscribe ./recordings -o ./subs --skip-existing   # a whole folder; leave files that are already done
babelscribe talk.mp4 -l th --accurate     # slower, fewest errors (best model per language)
babelscribe clip.mp4 --burn --style shorts   # also clip.subbed.mp4: the video with the captions drawn on
```
All options, Python, translation, burn-in and re-export:
[docs/usage.md](https://github.com/phonology024/babelscribe/blob/main/docs/usage.md).

## If something goes wrong
| What you see | What to do |
|---|---|
| `the download of ... stopped` | Check the connection and run it again: it continues where it stopped. |
| `checksum mismatch` | Run it again. If it repeats, a proxy or a Wi-Fi sign-in page is changing the download. |
| `needs about N GB of free memory` | Close other programs, or use the smaller model the message names (`-m small`). |
| `whisper-cli failed` | Update the graphics driver; `--flavor cpu` shows whether the GPU is the cause. |
| `no local LLM answered` | To translate, start Ollama, LM Studio, llama-server or colibri first. |
| The AI app does not show babelscribe | Quit the app completely, reopen it, check `babelscribe connect status`. |

`babelscribe doctor` shows what babelscribe found. Every message and more: [docs/troubleshooting.md](https://github.com/phonology024/babelscribe/blob/main/docs/troubleshooting.md).

## Use it from an AI app (MCP) — no terminal needed

[![babelscribe MCP server](https://mcprush.com/badge/babelscribe-mcp/card.svg)](https://mcprush.com/to/babelscribe-mcp?ref=badge)

babelscribe is also an [MCP](https://modelcontextprotocol.io) server, so any AI app that supports local MCP servers can
transcribe files on **your** computer with **your** GPU. Ask in plain words — *"make Thai subtitles for the newest video in
my Downloads"* — and the app finds the file, transcribes it, writes `.srt` / `.txt` next to it, and can then proofread names,
translate or summarise the text for you.

Tools: `transcribe`, `transcribe_folder`, `convert_subtitles`, `burn_subtitles`, `translate_subtitles`, `find_media`,
`list_devices`, `list_languages_and_models`. What each one does:
[docs/usage.md#mcp-tools](https://github.com/phonology024/babelscribe/blob/main/docs/usage.md#mcp-tools).

**Claude Desktop (one click):** download `babelscribe.mcpb` from the [latest release](https://github.com/phonology024/babelscribe/releases/latest)
and double-click it (or *Settings → Extensions → Install extension*).

**Everything else** runs the same command — [uv](https://docs.astral.sh/uv/) fetches babelscribe for you:
`uvx babelscribe mcp`

| App | How to add it |
|---|---|
| Claude Code | `claude mcp add babelscribe -- uvx babelscribe mcp` |
| OpenAI Codex CLI | `codex mcp add babelscribe -- uvx babelscribe mcp`, then in `~/.codex/config.toml` under `[mcp_servers.babelscribe]` set `tool_timeout_sec = 3600` and `startup_timeout_sec = 120` (defaults are 60 s / 10 s — too short for a long video or the first model download) |
| Google Antigravity | agent panel → ⋯ → *MCP Servers* → *Manage MCP Servers* → *View raw config*, add the JSON below |
| Gemini CLI | add the JSON below to `~/.gemini/settings.json` |
| OpenCode (2 or newer) | `opencode mcp add babelscribe --global -- uvx babelscribe mcp` |
| Cursor | add the JSON below to `~/.cursor/mcp.json` |
| VS Code (Copilot) | `.vscode/mcp.json`: same entry under `"servers"` with `"type": "stdio"` |

```json
{
  "mcpServers": {
    "babelscribe": { "command": "uvx", "args": ["babelscribe", "mcp"], "timeout": 3600000 }
  }
}
```
(`timeout` is in milliseconds and only some apps read it.) Already installed with pip? Use `"command": "babelscribe", "args": ["mcp"]`.
Web-only chat apps (e.g. grok.com, chatgpt.com) can only reach servers on the internet, not your computer, so they can't use your GPU or files.

## Results
GPU: AMD Radeon RX 9070 XT via Vulkan. *default* = `large-v3-turbo`; *accurate* = `--accurate`.

| Test | default | `--accurate` |
|---|---|---|
| English TED talk, 19.3 min, WER vs human captions | 48 s (24x) · 1.5% | 107 s (11x) · 1.5% |
| Thai, Google FLEURS, CER | 15.9% | 9.0% |
| Hindi, Google FLEURS, WER | 28.4% | 11.8% |
| English, Google FLEURS, WER | 6.1% | 5.7% |

The Thai and Hindi fine-tunes are downloaded ready to use (1.7 GB each) the first time `--accurate` needs one, and checked against a pinned SHA-256: there is nothing extra to install, also in the desktop app and the Claude Desktop bundle. When the download is not possible but large-v3 can be used (it is already on your computer, or the file is gone from the server), `--accurate` uses large-v3, which is less accurate for those two, and says so; otherwise it stops, and the next run continues the download. A model you converted with an earlier version is used as it is. Authors, changes and licence (Apache-2.0): [model credits and licences](docs/model-notices.md).

Thai and Hindi: measured on 2026-11-28 with the `babelscribe` command, `large-v3-turbo` timing and the q8_0 fine-tune. Without
the fine-tune (large-v3 instead) the same clips give 11.5% and 23.5% ([how, and how to repeat it](https://github.com/phonology024/babelscribe/blob/main/docs/benchmarks.md#how-the-thai-and-hindi-figures-were-measured)).

FLEURS: 50 utterances per language. All 16 languages, four TED / TEDx talks, method and the models that were tried and
not used: [docs/benchmarks.md](https://github.com/phonology024/babelscribe/blob/main/docs/benchmarks.md).

## Languages
All 99 languages Whisper was trained on, auto-detected or forced with `-l`. For Thai and Hindi, `--accurate` uses a
community fine-tune (downloaded the first time, see [Results](#results)). The full list and how to add a fine-tune:
[docs/languages.md](https://github.com/phonology024/babelscribe/blob/main/docs/languages.md).

## ภาษาไทย
ใช้ผ่าน Claude Desktop ได้โดยไม่ต้องพิมพ์คำสั่ง: โหลด `babelscribe.mcpb` จากหน้า Releases แล้วดับเบิลคลิก จากนั้นพิมพ์ในแชทว่า *"ทำซับไทยให้คลิปล่าสุดในโฟลเดอร์ดาวน์โหลด"*
ถอดเสียงจากไฟล์เสียงหรือวิดีโอได้ทุกภาษา บนการ์ดจอทุกยี่ห้อ (AMD / NVIDIA / Intel ผ่าน Vulkan, Apple ผ่าน Metal) หรือ CPU
ภาษาไทยแนะนำ `babelscribe ไฟล์.mp4 -l th --accurate` — ข้อความจาก Pathumma Whisper (NECTEC) + เวลาจาก large-v3-turbo (วัดบน FLEURS ภาษาไทย 50 ประโยค ด้วยการ์ดจอ: CER 9.0% เทียบกับ turbo 15.9% [วิธีวัด](https://github.com/phonology024/babelscribe/blob/main/docs/benchmarks.md#how-the-thai-and-hindi-figures-were-measured))
หรือเลือก Thonburian Whisper เอง: `--text-model thai-thonburian`
โมเดลภาษาไทยจะถูกดาวน์โหลดแบบพร้อมใช้ (1.7 GB) ในครั้งแรกที่ `--accurate` ต้องใช้ และตรวจกับค่า SHA-256 ที่กำหนดไว้ ไม่ต้องติดตั้งอะไรเพิ่ม ใช้ได้ทั้งแอปเดสก์ท็อปและไฟล์ .mcpb ของ Claude Desktop ถ้าดาวน์โหลดไม่ได้แต่ยังใช้ large-v3 ได้ (มีอยู่ในเครื่องแล้ว หรือไฟล์ไม่อยู่บนเซิร์ฟเวอร์แล้ว) babelscribe จะใช้ large-v3 แทน ซึ่งแม่นน้อยกว่าสำหรับภาษาไทย และจะแจ้งให้ทราบ ถ้าใช้ไม่ได้ จะหยุด แล้วการรันครั้งถัดไปจะดาวน์โหลดต่อจากเดิม โมเดลที่เคยแปลงไว้ด้วยรุ่นก่อนยังใช้ได้ตามเดิม ผู้สร้างโมเดล สิ่งที่แก้ไข และสัญญาอนุญาต (Apache-2.0): [model credits and licences](docs/model-notices.md)

## More docs
- [Troubleshooting](https://github.com/phonology024/babelscribe/blob/main/docs/troubleshooting.md) · [Setup steps for AI assistants](https://github.com/phonology024/babelscribe/blob/main/docs/AI_SETUP.md)
- [Usage](https://github.com/phonology024/babelscribe/blob/main/docs/usage.md): features, every command, Python, MCP tools, Docker, prebuilt binaries
- [Benchmarks](https://github.com/phonology024/babelscribe/blob/main/docs/benchmarks.md): TED talks and 16 languages on FLEURS
- [FAQ](https://github.com/phonology024/babelscribe/blob/main/docs/faq.md): common questions, limitations, how it compares
- [Languages](https://github.com/phonology024/babelscribe/blob/main/docs/languages.md): all 99 languages, adding a fine-tune
- [Roadmap](https://github.com/phonology024/babelscribe/blob/main/ROADMAP.md) and [open issues](https://github.com/phonology024/babelscribe/issues)
- [Contributing](https://github.com/phonology024/babelscribe/blob/main/CONTRIBUTING.md) · [Changelog](https://github.com/phonology024/babelscribe/blob/main/CHANGELOG.md)

## Privacy Policy
babelscribe runs entirely on your own computer. It has no telemetry, analytics, accounts or crash reporting, and never
uploads your audio, video, transcripts or file names. The network is used only to download `whisper-cli`, models and
Python packages. Optional translation (`--translate-to`) sends subtitle text only to an LLM on this computer, unless you
pass `--allow-remote`. Full policy: [docs/privacy.md](https://github.com/phonology024/babelscribe/blob/main/docs/privacy.md).

## Credits & licence
MIT. Built on [whisper.cpp](https://github.com/ggml-org/whisper.cpp) (MIT) and OpenAI Whisper models (MIT).
Fine-tunes belong to their authors: [Pathumma Whisper](https://huggingface.co/nectec/Pathumma-whisper-th-large-v3) by NECTEC,
[Thonburian Whisper](https://huggingface.co/biodatlab/whisper-th-large-v3-combined) by biodatlab,
[whisper-hindi-large-v2](https://huggingface.co/vasista22/whisper-hindi-large-v2) by vasista22 (Speech Lab, IIT Madras).
