-
Notifications
You must be signed in to change notification settings - Fork 351
Expand file tree
/
Copy pathsetup.py
More file actions
103 lines (99 loc) · 2.86 KB
/
setup.py
File metadata and controls
103 lines (99 loc) · 2.86 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
"""Needed so package data is included."""
import itertools
from pathlib import Path
from skbuild import setup
MODULE_DIR = Path(__file__).parent / "src" / "piper"
PIPER_DATA_FILES = ["py.typed", "espeakbridge.pyi"]
ESPEAK_NG_DATA_DIR = MODULE_DIR / "espeak-ng-data"
ESPEAK_NG_DATA_FILES = [
f.relative_to(MODULE_DIR) for f in ESPEAK_NG_DATA_DIR.rglob("*") if f.is_file()
]
TASHKEEL_DATA_DIR = MODULE_DIR / "tashkeel"
TASHKEEL_DATA_FILES = [
(TASHKEEL_DATA_DIR / f_name).relative_to(MODULE_DIR)
for f_name in (
"model.onnx",
"input_id_map.json",
"target_id_map.json",
"hint_id_map.json",
)
]
setup(
name="piper-tts",
version="1.4.2",
description="Fast and local neural text-to-speech engine",
url="http://github.com/OHF-voice/piper1-gpl",
license="GPL-3.0-or-later",
author="The Home Assistant Authors",
author_email="hello@home-assistant.io",
keywords=["home", "assistant", "tts", "text-to-speech"],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
python_requires=">=3.9",
install_requires=[
"onnxruntime>=1,<2",
"pathvalidate>=3,<4",
],
extras_require={
"train": [
"torch>=2,<3",
"lightning>=2,<3",
"tensorboard>=2,<3",
"tensorboardX>=2,<3",
"jsonargparse[signatures]>=4.27.7",
"onnx>=1,<2",
"pysilero-vad>=2.1,<3",
"cython>=3,<4",
"librosa<1",
],
"dev": [
"black==24.8.0",
"flake8==7.1.1",
"mypy==1.14.0",
"pylint==3.2.7",
"pytest==8.3.4",
"build==1.2.2",
"scikit-build<1",
"cmake>=3.18,<4",
"ninja>=1,<2",
],
"http": [
"flask>=3,<4",
],
"alignment": [
"onnx>=1,<2",
],
"zh": [
"g2pW>=0.1.1,<1",
"sentence-stream>=1.2.1,<2",
"unicode-rbnf>=2.4.0,<3",
"torch>=2,<3",
"requests>=2,<3",
],
},
packages=["piper", "piper.tashkeel", "piper.train"],
package_dir={"": "src"},
include_package_data=True,
package_data={
"piper": [
str(p)
for p in itertools.chain(
PIPER_DATA_FILES, ESPEAK_NG_DATA_FILES, TASHKEEL_DATA_FILES
)
],
},
cmake_install_dir="src/piper",
entry_points={
"console_scripts": [
"piper = piper.__main__:main",
]
},
)