Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
TensorSpeech
GitHub Repository: TensorSpeech/TensorFlowTTS
Path: blob/master/setup.py
1558 views
1
"""Setup Tensorflow TTS libarary."""
2
3
import os
4
import sys
5
from distutils.version import LooseVersion
6
7
import pip
8
from setuptools import find_packages, setup
9
10
if LooseVersion(sys.version) < LooseVersion("3.6"):
11
raise RuntimeError(
12
"TensorFlow TTS requires python >= 3.6, "
13
"but your Python version is {}".format(sys.version)
14
)
15
16
if LooseVersion(pip.__version__) < LooseVersion("19"):
17
raise RuntimeError(
18
"pip>=19.0.0 is required, but your pip version is {}. "
19
'Try again after "pip install -U pip"'.format(pip.__version__)
20
)
21
22
# TODO(@dathudeptrai) update requirement if needed.
23
requirements = {
24
"install": [
25
"tensorflow-gpu==2.7.0",
26
"tensorflow-addons>=0.10.0",
27
"setuptools>=38.5.1",
28
"huggingface_hub==0.0.8",
29
"librosa>=0.7.0",
30
"soundfile>=0.10.2",
31
"matplotlib>=3.1.0",
32
"PyYAML>=3.12",
33
"tqdm>=4.26.1",
34
"h5py>=2.10.0",
35
"unidecode>=1.1.1",
36
"inflect>=4.1.0",
37
"scikit-learn>=0.22.0",
38
"pyworld>=0.2.10",
39
"numba>=0.48", # Fix No module named "numba.decorators"
40
"jamo>=0.4.1",
41
"pypinyin",
42
"g2pM",
43
"textgrid",
44
"click",
45
"g2p_en",
46
"dataclasses",
47
"pyopenjtalk",
48
],
49
"setup": ["numpy", "pytest-runner",],
50
"test": [
51
"pytest>=3.3.0",
52
"hacking>=1.1.0",
53
],
54
}
55
56
# TODO(@dathudeptrai) update console_scripts.
57
entry_points = {
58
"console_scripts": [
59
"tensorflow-tts-preprocess=tensorflow_tts.bin.preprocess:preprocess",
60
"tensorflow-tts-compute-statistics=tensorflow_tts.bin.preprocess:compute_statistics",
61
"tensorflow-tts-normalize=tensorflow_tts.bin.preprocess:normalize",
62
]
63
}
64
65
install_requires = requirements["install"]
66
setup_requires = requirements["setup"]
67
tests_require = requirements["test"]
68
extras_require = {
69
k: v for k, v in requirements.items() if k not in ["install", "setup"]
70
}
71
72
dirname = os.path.dirname(__file__)
73
setup(
74
name="TensorFlowTTS",
75
version="0.0",
76
url="https://github.com/tensorspeech/TensorFlowTTS",
77
author="Minh Nguyen Quan Anh, Alejandro Miguel Velasquez, Dawid Kobus, Eren Gölge, Kuan Chen, Takuya Ebata, Trinh Le Quang, Yunchao He",
78
author_email="[email protected]",
79
description="TensorFlowTTS: Real-Time State-of-the-art Speech Synthesis for TensorFlow 2",
80
long_description=open(os.path.join(dirname, "README.md"), encoding="utf-8").read(),
81
long_description_content_type="text/markdown",
82
license="Apache-2.0",
83
packages=find_packages(include=["tensorflow_tts*"]),
84
install_requires=install_requires,
85
setup_requires=setup_requires,
86
tests_require=tests_require,
87
extras_require=extras_require,
88
entry_points=entry_points,
89
classifiers=[
90
"Programming Language :: Python :: 3.6",
91
"Programming Language :: Python :: 3.7",
92
"Programming Language :: Python :: 3.8",
93
"Intended Audience :: Science/Research",
94
"Operating System :: POSIX :: Linux",
95
"License :: OSI Approved :: Apache Software License",
96
"Topic :: Software Development :: Libraries :: Python Modules",
97
],
98
)
99
100