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