File size: 1,419 Bytes
a1fe2e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"

[project]
name = "vitakws"
version = "0.1.0"
description = "BC-ResNet wake-word training pipeline for Vietnamese (Hey Vita)"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "torch>=2.3",
    "numpy>=1.26",
    "scipy>=1.11",
    "soundfile>=0.12",
    "pyyaml>=6.0",
    "tqdm>=4.66",
]

[project.optional-dependencies]
train = ["wandb>=0.17", "matplotlib>=3.8"]
export = ["onnx>=1.16", "onnxruntime>=1.18"]
synth = ["edge-tts>=6.1", "piper-tts>=1.2"]
dev = ["pytest>=8.0", "ruff>=0.5"]
live = ["fastapi>=0.110", "uvicorn[standard]>=0.29", "python-multipart>=0.0.9", "onnxruntime>=1.18"]
all = ["vitakws[train,export,synth,dev,live]"]

[project.scripts]
vitakws-train = "vitakws.train:main"
vitakws-eval = "vitakws.evaluate:main"
vitakws-export = "vitakws.export:main"
vitakws-data = "vitakws.tools.data:main"
vitakws-phrases = "vitakws.tools.phrases:main"
vitakws-synth = "vitakws.tools.synth:main"
vitakws-mine = "vitakws.tools.mine:main"
vitakws-dummy = "vitakws.tools.dummy:main"
vitakws-live = "vitakws.tools.live:main"

[tool.setuptools.packages.find]
where = ["src"]

[tool.ruff]
line-length = 100
target-version = "py310"

[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
ignore = ["E741", "E501"]  # line length is the formatter's job

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"