A robust Python toolkit powered by Google's Gemini API for converting video content into accurate, multilingual subtitles.
- 📝 Subtitle generation from HLS video streams.
- 📚 Subtitle validation and quality control.
- 🎵 Audio fingerprinting and analysis using Shazam (macOS only).
- Python 3.10 or higher
- FFmpeg installed on your system
pip install sub-tools
export GEMINI_API_KEY={your_api_key}
sub-tools --hls-url https://example.com/hls/video.m3u8 --languages en es fr
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/{feature-name}
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/{feature-name}
) - Open a Pull Request
git clone https://github.com/dohyeondk/sub-tools.git
cd sub-tools
uv sync
uv run pytest
This project is licensed under the MIT License - see the LICENSE file for details.