-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (52 loc) · 1.94 KB
/
Copy pathsetup.py
File metadata and controls
62 lines (52 loc) · 1.94 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
import os
import platform
import shutil
import setuptools
INCLUDE_FILES = [
"../../LICENSE",
"orca_demo.py",
"orca_demo_streaming.py"]
os.system("git clean -dfx")
package_folder = os.path.join(os.path.dirname(__file__), "pvorcademo")
os.mkdir(package_folder)
manifest_in = ""
for rel_path in INCLUDE_FILES:
shutil.copy(os.path.join(os.path.dirname(__file__), rel_path), package_folder)
manifest_in += "include pvorcademo/%s\n" % os.path.basename(rel_path)
with open(os.path.join(os.path.dirname(__file__), "MANIFEST.in"), "w") as f:
f.write(manifest_in)
with open(os.path.join(os.path.dirname(__file__), "README.md"), "r") as f:
long_description = f.read()
if platform.platform() != 'win32' or platform.machine() != 'ARM64':
dependencies = ["numpy>=1.24.0", "pvorca==3.1.0", "pvspeaker==1.0.5", "tiktoken==0.8.0"]
else:
dependencies = ["pvorca==3.1.0", "pvspeaker==1.0.5"]
setuptools.setup(
name="pvorcademo",
version="3.1.0",
author="Picovoice",
author_email="hello@picovoice.ai",
description="Orca Streaming Text-to-Speech Engine demos",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Picovoice/orca",
packages=["pvorcademo"],
install_requires=dependencies,
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Multimedia :: Sound/Audio :: Speech"
],
entry_points=dict(
console_scripts=[
"orca_demo=pvorcademo.orca_demo:main",
"orca_demo_streaming=pvorcademo.orca_demo_streaming:main",
],
),
python_requires=">=3.9",
keywords="Streaming Text-to-Speech, TTS, Speech Synthesis, Voice Generation, Speech Engine",
)