| Crates.io | sirtea |
| lib.rs | sirtea |
| version | 0.1.0 |
| created_at | 2026-01-02 18:51:18.476213+00 |
| updated_at | 2026-01-02 18:51:18.476213+00 |
| description | Generate SRT subtitle files from video using the Gladia speech-to-text API |
| homepage | |
| repository | https://github.com/jonhoo/sirtea |
| max_upload_size | |
| id | 2019049 |
| size | 129,707 |
Generate SRT subtitle files from video using the Gladia speech-to-text API.
This tool uses a paid service. Gladia charges ~$0.50-0.61/hour depending on your plan, with a free tier offering 10 hours/month. Use --dry-run to estimate costs before transcribing.
Gladia (like most transcription APIs) has a 135-minute limit per request. This tool handles arbitrarily long videos by:
It also allows transcribing multiple videos concurrently, while ensuring that your total Gladia use cost does not exceed a set threshold.
For the full story, see the blog post.
Download from the releases page.
cargo install sirtea
sirtea video.mkv # Transcribe a single video
sirtea lecture1.mp4 lecture2.mp4 # Transcribe multiple videos
sirtea --dry-run *.mkv # Estimate cost without transcribing
sirtea -q video.mp4 # Quiet mode (errors only)
Output SRT files are created alongside the input videos (e.g., video.mkv → video.srt). Videos with existing .srt files are skipped.
Set your Gladia API key via environment variable or config file:
export GLADIA_API_KEY="your-key-here"
Or create a config file:
~/.config/sirtea/config.toml~/Library/Application Support/sirtea/config.toml%APPDATA%\sirtea\config.tomlgladia_api_key = "your-key-here"
See config.example.toml for other options you can set in your configuration file.
These can be set in the config file or overridden via CLI flags:
| Option | CLI flag | Default | Description |
|---|---|---|---|
max_cost |
--max-cost |
10.0 | Stop when estimated cost exceeds this (dollars) |
parallel |
--parallel |
3 | Concurrent transcriptions (free plan limit; paid plans allow 25) |
segment_length |
--segment-length |
5400 | Max segment length in seconds (1h30m is the default, though Gladia allows up to 2h15m) |
sirtea [OPTIONS] <PATH>...
Run sirtea --help for full usage information.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.