Refine your Whisper-generated subtitles with the power of Intelligence.
An advanced post-processing suite for perfectly polished SRT/ASS subtitles.
SubtitleLab is a premium post-processing tool designed to transform raw, hallucination-prone Whisper transcripts into professional-grade subtitles. By leveraging Large Language Models (LLMs), SubtitleLab handles the linguistic nuances that traditional rule-based tools miss—specifically optimized for Japanese to Chinese subtitle correction.
Whisper is revolutionary, but its output often suffers from:
- Hallucinations: Repeating phrases or "ghost" text during silence.
- Segmentation Issues: Awkward line breaks or fragmented sentences.
- Homophone Confusion: Incorrect character selection (同音字) based on phonetic similarity.
SubtitleLab acts as an intelligent "AI Editor" that understands context, tone, and flow to ensure your subtitles are not just accurate, but readable.
- 🧠 LLM-Powered Correction: Context-aware fixing of homophone errors and linguistic slips.
- ✂️ Smart Sentence Management: Automatically merges fragmented segments and splits overly long lines.
- 🧹 Whisper Cleanup: Deep detection and removal of common Whisper hallucinations (e.g., "Thanks for watching", repetitive loops).
- 🎨 Modern Flet GUI: A sleek, reactive interface with dark mode support and real-time feedback.
- ⚡ Async Engine: High-performance asynchronous processing with live progress tracking.
- 📊 Quality Validation: Automated scoring system that evaluates coherence, timing, and formatting.
- 🌐 Universal API Support: Works with any OpenAI-compatible provider (OpenAI, DeepSeek, Claude via proxy, etc.).
# Clone the repository
git clone https://github.com/roymecat/subtitle-lab.git
cd subtitlelab
# Set up environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -e .Simply run the entry point from your terminal:
subtitlelabSubtitleLab offers extensive customization through its modern settings panel:
- API Endpoint: Connect to your preferred LLM provider.
- Model Selection: Toggle between speed and accuracy (e.g., GPT-4o vs GPT-3.5-Turbo).
- Processing Logic: Adjust the aggressiveness of sentence merging and hallucination filters.
- Language Profiles: Optimized presets for Japanese source to Chinese target.
- UI Framework: Flet (Flutter for Python)
- Core Engine: Python 3.10+
- LLM Client: OpenAI Python SDK
- Subtitle Logic: pysubs2
- Reliability: Tenacity (Advanced retry mechanisms)
(Screenshot placeholders - Modern GUI coming soon!)
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Made with ❤️ by the SubtitleLab Team