Skip to main content

gemini-transcribe-wrapper

Zero-config wrapper for Gemini 3.5 Transcribe that breaks long audio into API-safe chunks and merges the results back into .speakers.srt / .srt / .txt.

Quick Start

  1. Get an API key

Sign up at Google AI Studio and create an API key.

  1. Install the tool

Linux / macOS:

export GEMINI_API_KEY=your_key_here
uvx -q gemini-transcribe-wrapper --help

Windows (PowerShell):

$env:GEMINI_API_KEY = "your_key_here"
uvx -q gemini-transcribe-wrapper --help

Windows (Command Prompt):

set GEMINI_API_KEY=your_key_here
uvx -q gemini-transcribe-wrapper --help
  1. Transcribe

With GEMINI_API_KEY set (from step 2):

uvx -q gemini-transcribe-wrapper sample.mp4

Or pass the key directly:

uvx -q gemini-transcribe-wrapper --gemini-api-key YOUR_API_KEY sample.mp4
uvx -q gemini-transcribe-wrapper --gemini-api-key YOUR_API_KEY *.mp4

Done: sample.speakers.srt, sample.srt, sample.txt appear next to the input. Any local video/audio works (.mp4, .mp3, etc.).

How it works

This wrapper exists to get past the Gemini free tier limits:

  • Max 2 API calls per minute: chunks are transcribed sequentially with a built-in delay (default 30s) between API calls.
  • Max 30 minutes of audio per call: long files are split into equal ≤25 min chunks, transcribed, then merged and aligned with ffsubsync.
  • Max 25 API calls per day: once the daily quota is used up, the API returns HTTP 429. If you hit it, the tool prints the limits above: free tier users should try again tomorrow, or switch to a paid tier (enable billing) to keep going immediately.

.speakers.srt (speaker diarization, still a standard .srt for media players), .srt (no speaker labels), and .txt (clean text) are all generated at once by default. Don't need one? Turn it off:

uvx -q gemini-transcribe-wrapper sample.mp4 --no-speakers-srt --no-txt   # keep only .srt
uvx -q gemini-transcribe-wrapper sample.mp4 --no-srt                     # keep .speakers.srt + .txt

See uvx -q gemini-transcribe-wrapper --help for all options (speaker name mapping, transcript re-rendering, temp dir, etc.).

Shortcut: install once, use gtw

Typing uvx -q gemini-transcribe-wrapper ... each time is verbose. If you want a short command, install the tool once and use the gtw shortcut: the exact same tool, installed alongside it.

Linux / macOS:

uv -q tool install gemini-transcribe-wrapper
export GEMINI_API_KEY=your_key_here
gtw sample.mp4

Windows (PowerShell):

uv -q tool install gemini-transcribe-wrapper
$env:GEMINI_API_KEY = "your_key_here"
gtw sample.mp4

After uv tool install, both gemini-transcribe-wrapper and gtw work interchangeably.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_transcribe_wrapper-0.0.3.tar.gz (93.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_transcribe_wrapper-0.0.3-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file gemini_transcribe_wrapper-0.0.3.tar.gz.

File metadata

  • Download URL: gemini_transcribe_wrapper-0.0.3.tar.gz
  • Upload date:
  • Size: 93.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gemini_transcribe_wrapper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bf1c2dc22838e3158ac4fe2686cf3f4ab3ea317c411845195a29ceb3d286f65d
MD5 3431c68208ab533a3bca1a9a2c0303d9
BLAKE2b-256 896218ab230715d34d07fedd62840d6c88b4f8bb5e67a4e52a0ddc0a62304093

See more details on using hashes here.

File details

Details for the file gemini_transcribe_wrapper-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gemini_transcribe_wrapper-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gemini_transcribe_wrapper-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 89b110b8fb6c68b5ac2a7664d1e02f2f0e0c148db1aa4f99aed4555a015f704d
MD5 2a20391fc0db9fcda9c4879c43a35d81
BLAKE2b-256 5e0a4b2a344ac32c967b40699f8e6fc268974678c7942ad2d87e8689b28ea455

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page