File size: 1,395 Bytes
4e4961e
5ae79ee
cd1309d
 
4e4961e
 
 
 
5ae79ee
4e4961e
 
fe89bd8
4e4961e
 
 
 
 
 
 
 
 
 
 
 
 
cf7f5a3
94a90b6
fe89bd8
4e4961e
 
 
 
 
 
 
 
 
 
 
cd1309d
5ae79ee
4e4961e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94a90b6
4e4961e
 
 
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
[project]
name = "audio-translator"
version = "0.1.0"
description = "High-quality audio translation web application"
authors = [
    {name = "Your Name", email = "your.email@example.com"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "gradio>=5.25.2",
    "nltk>=3.8",
    "librosa>=0.10",
    "ffmpeg-python>=0.2",
    "transformers[audio]>=4.33",
    "torch>=2.1.0",
    "torchaudio>=2.1.0",
    "scipy>=1.11",
    "munch>=2.5",
    "accelerate>=1.2.0",
    "soundfile>=0.13.0",
    "ordered-set>=4.1.0",
    "phonemizer-fork>=3.3.2",
    "nemo_toolkit[asr]",
    "faster-whisper>=1.1.1",
    "chatterbox-tts",
    "YouTokenToMe = { git = "https://github.com/LahiLuk/YouTokenToMe", branch = "main" }"
]

[project.optional-dependencies]
dev = [
    "pytest>=7.0",
    "pytest-cov>=4.0",
    "pytest-mock>=3.10",
    "black>=23.0",
    "flake8>=6.0",
    "mypy>=1.0",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src"]

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"

[tool.black]
line-length = 100
target-version = ['py39']

[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true