File size: 2,504 Bytes
9844a46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from setuptools import setup, find_packages
from pathlib import Path

# Read README file
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")

# Read version from __init__.py
def get_version():
    init_file = this_directory / "pmptts" / "__init__.py"
    with open(init_file, "r", encoding="utf-8") as f:
        for line in f:
            if line.startswith("__version__"):
                return line.split("=")[1].strip().strip('"\'')
    raise RuntimeError("Unable to find version string.")

setup(
    name="pmptts",
    version=get_version(),
    author="PhapPM",
    author_email="phappm@gmail.com",
    description="High-quality Text-to-Speech library for Vietnamese",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/KhanhTho3110/PMP-TTS",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Multimedia :: Sound/Audio :: Speech",
    ],
    python_requires=">=3.8",
    install_requires=[
        "numpy>=1.21.0",
        "soundfile>=0.10.3",
        "pydub>=0.25.0",
        "tqdm>=4.64.0",
    ],
    extras_require={
        "cpu": [
            "onnxruntime>=1.15.0",
        ],
        "gpu": [
            "onnxruntime-gpu>=1.15.0",
        ],
    },
    entry_points={
        "console_scripts": [
            "pmp-tts=pmptts.cli:main",
        ],
    },
    include_package_data=True,
    keywords="tts text-to-speech vietnamese voice synthesis ai ml",
    project_urls={
        "Bug Reports": "https://github.com/KhanhTho3110/PMP-TTS/issues",
        "Source": "https://github.com/KhanhTho3110/PMP-TTS",
        "Documentation": "https://github.com/KhanhTho3110/PMP-TTS/blob/main/README.md",
    },
)