跳到正文
GitHub·· 14 小时前AI 评分42

Anysub:基于 Whisper 的自托管字幕生成与编辑工具

pluja/anysub

AI 导读

Anysub(原 Whishper)可将音视频上传后用 Whisper 转写,支持从 tiny 到 large-v3-turbo 的模型,并提供词级时间戳与波形时间轴字幕编辑器。它可导出 SRT、WebVTT、LRC、纯文本或 JSON,支持断点续传上传和可搜索素材库,需在 x86-64 Linux 上用 Docker Compose 部署,GPU 转写比 CPU 快数倍。

正文

Anysub (formerly Whishper) makes subtitles from audio and video. Upload a recording, let Whisper transcribe it, then fix the text and timing in the editor and export. It runs on your own computer or server.

The Anysub studio with the video, the subtitle list and the waveform timeline

Features

  • Transcription with Whisper, from the tiny model to large-v3-turbo.
  • Word-level timings.
  • A subtitle editor with a waveform timeline, undo and autosave.
  • Warnings for subtitles that are too fast, too long, or overlap.
  • Export to SRT, WebVTT, LRC, plain text or JSON.
  • Uploads that resume, for hours-long files.
  • A searchable library.
  • Admin pages for models, defaults, upload limits, disk space and workers.

Install

You need Linux on x86-64 with Docker and Docker Compose.

  1. Create a folder and download the Compose file:

    mkdir anysub && cd anysub
    curl -fsSLO https://github.com/pluja/anysub/releases/latest/download/compose.yaml
  2. Optional. Skip to step 3 to transcribe on the CPU. Otherwise, download one extra file into the same folder and turn it on:

    • NVIDIA GPU. You need the NVIDIA Container Toolkit and a GTX 16xx, RTX 20xx or newer card.

      curl -fsSLO https://github.com/pluja/anysub/releases/latest/download/compose.cuda.yaml
      echo "COMPOSE_FILE=compose.yaml:compose.cuda.yaml" >> .env
    • External providers only. If you only transcribe with a service such as OpenAI or Groq, this smaller worker leaves out the local models and needs no GPU. Add the service under Administration > External providers once Anysub runs. See External providers.

      curl -fsSLO https://github.com/pluja/anysub/releases/latest/download/compose.remote.yaml
      echo "COMPOSE_FILE=compose.yaml:compose.remote.yaml" >> .env
  3. Start Anysub:

    docker compose up -d
  4. Open http://localhost:5173 and create your account. It asks for a setup code, which docker compose logs web shows.

A GPU transcribes several times faster than a CPU. AMD and Intel GPUs aren't supported yet, but I plan to add them.

Install covers Podman, reverse proxies and building from source. NVIDIA GPUs helps when the GPU doesn't work.

Coming from Whishper 3

Whishper 3 is no longer maintained, and Anysub can't read its data. Coming from Whishper 3 explains how to move over. The old code is in the v3-legacy branch.

Not built yet

  • Translation.
  • Speaker labels.
  • Watched folders.
  • Import from a URL or an existing subtitle file.
  • More than one account.
  • Workers on other machines.
  • ARM images.

These will come in 4.x releases. See the changelog.

Documentation

See docs.

AI disclosure

Large language models helped write the code and docs. A human reviews and tests every change before it ships.

License

AGPL-3.0-only.

来源:GitHub · github.com