mirror of
https://github.com/m-bain/whisperX.git
synced 2026-11-10 21:10:50 +08:00
Resolved conflicts with `git merge-file`; change set unchanged. Signed-off-by: li-lizhe <147392333@qq.com>
83 lines
2.7 KiB
TOML
83 lines
2.7 KiB
TOML
[project]
|
|
urls = { repository = "https://github.com/m-bain/whisperx" }
|
|
authors = [{ name = "Max Bain" }]
|
|
name = "whisperx"
|
|
version = "3.8.7rc1"
|
|
description = "Time-Accurate Automatic Speech Recognition using Whisper."
|
|
readme = "README.md"
|
|
requires-python = ">=3.10, <3.14"
|
|
license = { text = "BSD-2-Clause" }
|
|
|
|
dependencies = [
|
|
"ctranslate2>=4.5.0",
|
|
"faster-whisper>=1.2.0",
|
|
"nltk>=3.9.1",
|
|
"numpy>=2.1.0",
|
|
"omegaconf>=2.3.0",
|
|
"pandas>=2.2.3",
|
|
"pyannote-audio>=4.0.0",
|
|
"huggingface-hub>=0.28.1",
|
|
"torch~=2.8.0",
|
|
"torchvision~=0.23.0",
|
|
"torchcodec>=0.6.0,<0.8.0; (sys_platform == 'linux' and platform_machine == 'x86_64') or sys_platform == 'darwin' or sys_platform == 'win32'",
|
|
"transformers>=4.48.0",
|
|
"triton>=3.3.0; sys_platform == 'linux' and platform_machine == 'x86_64'" # only install triton on x86_64 Linux
|
|
]
|
|
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest"]
|
|
fast = ["numba>=0.68.0"]
|
|
# torchaudio is only used for loading align models via torchaudio.pipelines
|
|
# (an optional path). Platforms without torchaudio wheels (e.g. Ascend /
|
|
# Linux aarch64) skip installing it and use the HF fallback instead.
|
|
align-torch = ["torchaudio~=2.8.0"]
|
|
|
|
[project.scripts]
|
|
whisperx = "whisperx.__main__:cli"
|
|
|
|
[build-system]
|
|
requires = ["setuptools"]
|
|
|
|
[tool.setuptools]
|
|
include-package-data = true
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["whisperx*"]
|
|
|
|
# torchcodec (transitive dep of pyannote-audio >=4) has no wheels for Linux aarch64
|
|
[tool.uv]
|
|
exclude-newer = "1 week"
|
|
override-dependencies = [
|
|
"torchcodec>=0.6.0,<0.8.0; (sys_platform == 'linux' and platform_machine == 'x86_64') or sys_platform == 'darwin' or sys_platform == 'win32'",
|
|
]
|
|
|
|
[tool.uv.pip]
|
|
exclude-newer = "1 week"
|
|
|
|
[tool.uv.sources]
|
|
torch = [
|
|
{ index = "pytorch-cpu", marker = "sys_platform == 'darwin'" },
|
|
{ index = "pytorch-cpu", marker = "platform_machine != 'x86_64' and platform_machine != 'AMD64' and sys_platform != 'darwin'" },
|
|
{ index = "pytorch", marker = "(platform_machine == 'x86_64' or platform_machine == 'AMD64') and sys_platform != 'darwin'" },
|
|
]
|
|
torchaudio = [
|
|
{ index = "pytorch-cpu", marker = "sys_platform == 'darwin'" },
|
|
{ index = "pytorch-cpu", marker = "platform_machine != 'x86_64' and platform_machine != 'AMD64' and sys_platform != 'darwin'" },
|
|
{ index = "pytorch", marker = "(platform_machine == 'x86_64' or platform_machine == 'AMD64') and sys_platform != 'darwin'" },
|
|
]
|
|
triton = [
|
|
{ index = "pytorch", marker = "sys_platform == 'linux'" },
|
|
]
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch"
|
|
url = "https://download.pytorch.org/whl/cu128"
|
|
explicit = true
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch-cpu"
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
explicit = true
|