Whisper 字幕生成器
使用OpenAI Whisper API生成带有词级时间戳的精确字幕和标题。输出SRT、VTT和ASS格式,支持可配置的行长和通过pyannote实现的说话人分离。
安装
根据你的环境选择上游安装或设置路径:
- pip install -U openai-whisper
- pip install git+https://github.com/openai/whisper.git
- pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git
- brew install ffmpeg
上游的要求和注意事项:
- 我们使用Python 3.9.9和PyTorch 1.10.1来训练和测试我们的模型,但代码库预计兼容Python 3.8-3.11以及最近的PyTorch版本。代码库还依赖于...
- 另外,以下命令将拉取并安装此仓库中的最新提交,以及其Python依赖项:
- 它还需要在你的系统上安装命令行工具ffmpeg,该工具可从大多数包管理器获得:
基本用法或入门说明:
-
要将包更新到此仓库的最新版本,请运行:
-
bash
-
从上游文档中提取:https://raw.githubusercontent.com/openai/whisper/HEAD/README.md