Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (74 loc) · 2.52 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (74 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "polydub"
version = "0.3.0"
description = "Automated video dubbing pipeline with voice cloning and multi-language support"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "PolyDub Contributors" }]
keywords = ["dubbing", "video", "tts", "whisper", "translation", "voice-cloning"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Video",
"Topic :: Multimedia :: Sound/Audio :: Speech",
]
dependencies = [
"openai-whisper>=20240930",
"argostranslate>=1.9",
"TTS>=0.22",
# Coqui TTS 0.22 imports `BeamSearchScorer` which was removed from
# transformers in 4.50. Pin to the range TTS was tested against.
"transformers>=4.36,<4.41",
# torchaudio >=2.9 removed its built-in audio decoders and now defers to
# torchcodec for loading WAV/MP3 etc. TTS calls torchaudio.load() on the
# speaker reference, so torchcodec is now a hard runtime requirement.
"torchcodec>=0.1",
"pydub>=0.25",
"pysrt>=1.1",
"srt>=3.5",
"ffmpeg-python>=0.2",
"pysbd>=0.3",
]
[project.optional-dependencies]
# Install one CUDA wheel of torch matching your driver before/after `pip install -e .[gpu]`.
gpu = []
# torch on macOS arm64 ships with MPS support; no extra packages needed.
mps = []
# Gradio web UI (polydub-gui). Kept out of core to keep the base install light.
gui = ["gradio>=4"]
# Background music/SFX preservation via Demucs source separation. Heavy; opt-in.
separate = ["demucs>=4"]
dev = [
"ruff>=0.6",
"mypy>=1.10",
"pytest>=8",
"pytest-cov>=5",
"pytest-randomly>=3.15",
"pre-commit>=3.7",
]
[project.scripts]
polydub = "polydub.cli:main"
polydub-gui = "polydub.gui:main"
[project.urls]
Homepage = "https://github.com/your-org/polydub"
Issues = "https://github.com/your-org/polydub/issues"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-ra --strict-markers"
markers = [
"slow: end-to-end tests that touch ffmpeg / heavy ML models",
]