-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (56 loc) · 1.66 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (56 loc) · 1.66 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "voice-input-method"
version = "3.1.0"
description = "FunASR-based low-latency voice input method"
readme = "README.md"
license = {text = "GPL-3.0-or-later"}
requires-python = ">=3.10"
dependencies = [
"funasr-onnx>=0.3",
"opencc-python-reimplemented>=0.1.7",
"sounddevice>=0.4",
"soundfile>=0.12",
"numpy>=1.24",
"PyYAML>=6.0",
"noisereduce>=3.0",
]
[project.optional-dependencies]
gui = ["PySide6>=6.5", "pynput>=1.7"]
macos = ["pyobjc-framework-ApplicationServices", "pyobjc-framework-Cocoa"]
sherpa = ["sherpa-onnx>=1.12"]
lm = ["pyctcdecode>=0.5", "kenlm>=0.3", "kaldi-native-fbank>=1.22"]
dev = ["pytest", "pytest-cov", "ruff"]
integration = ["pytest", "edge-tts", "librosa", "jieba", "modelscope", "torch"]
[project.scripts]
voice-input = "voice_input_method.__main__:main"
voice-input-cli = "voice_input_method.cli:main"
[tool.pytest.ini_options]
markers = [
"integration: real ASR model tests (require model download, ~250MB)",
"sherpa: sherpa-onnx backend tests (require sherpa-onnx + models)",
]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = [
"E501", # line too long — let formatter handle
]
[tool.ruff.lint.isort]
known-first-party = ["voice_input_method"]
[tool.coverage.run]
source = ["voice_input_method"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__",
]
[tool.setuptools.packages.find]
include = ["voice_input_method*"]
[tool.setuptools.package-data]
"voice_input_method" = ["resources/*"]