stefantaubert commited on
Commit
1ccab24
1 Parent(s): 8f6f97b
Files changed (6) hide show
  1. .gitignore +111 -0
  2. Pipfile +22 -0
  3. Pipfile.lock +0 -0
  4. README.md +21 -6
  5. app.py +31 -0
  6. requirements.txt +1 -0
.gitignore ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ flagged/
2
+ .vscode/
3
+ .vscode
4
+ .ipynb_checkpoints
5
+
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+ .mypy
11
+ # C extensions
12
+ *.so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ *.egg-info/
29
+ .installed.cfg
30
+ *.egg
31
+ MANIFEST
32
+
33
+ # PyInstaller
34
+ # Usually these files are written by a python script from a template
35
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
36
+ *.manifest
37
+ *.spec
38
+
39
+ # Installer logs
40
+ pip-log.txt
41
+ pip-delete-this-directory.txt
42
+
43
+ # Unit test / coverage reports
44
+ htmlcov/
45
+ .tox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # pyenv
81
+ .python-version
82
+
83
+ # celery beat schedule file
84
+ celerybeat-schedule
85
+
86
+ # SageMath parsed files
87
+ *.sage.py
88
+
89
+ # Environments
90
+ .env
91
+ .venv
92
+ env/
93
+ venv/
94
+ ENV/
95
+ env.bak/
96
+ venv.bak/
97
+
98
+ # Spyder project settings
99
+ .spyderproject
100
+ .spyproject
101
+
102
+ # Rope project settings
103
+ .ropeproject
104
+
105
+ # mkdocs documentation
106
+ /site
107
+
108
+ # mypy
109
+ .mypy_cache/
110
+
111
+ .vscode
Pipfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [[source]]
2
+ url = "https://pypi.org/simple"
3
+ verify_ssl = true
4
+ name = "pypi"
5
+
6
+ [packages]
7
+ zho-tts = ">=0.0.2"
8
+
9
+ [dev-packages]
10
+ autopep8 = "*"
11
+ pylint = "*"
12
+ pycodestyle = "*"
13
+ isort = "*"
14
+ rope = "*"
15
+ pytest = "*"
16
+ autoflake = "*"
17
+ twine = "*"
18
+ tox = "*"
19
+ build = "*"
20
+
21
+ [requires]
22
+ python_version = "3.11"
Pipfile.lock ADDED
The diff for this file is too large to render. See raw diff
 
README.md CHANGED
@@ -1,13 +1,28 @@
1
  ---
2
- title: Zho Tts
3
- emoji: 📚
4
- colorFrom: gray
5
- colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 4.27.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ title: zho-tts
3
+ emoji: 💬
4
+ colorFrom: blue
5
+ colorTo: green
6
  sdk: gradio
7
+ sdk_version: 4.26.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ fullWidth: false
12
+ python_version: 3.11
13
+ tags:
14
+ - speech synthesis
15
+ - text-to-speech
16
+ - speech generation
17
+ - Chinese
18
+ - linguistics
19
+ - Tacotron
20
+ - WaveGlow
21
+ startup_duration_timeout: 90m
22
+ models:
23
+ - stefantaubert/zho-tts
24
  ---
25
 
26
+ # zho-tts
27
+
28
+ Chinese speech synthesis using `zho-tts`.
app.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from functools import partial
3
+
4
+ from zho_tts_app import initialize_logging, run_main
5
+ from zho_tts_gr import build_interface
6
+
7
+
8
+ def run() -> None:
9
+ try:
10
+ initialize_logging()
11
+ except ValueError as ex:
12
+ print("Logging not possible!")
13
+ sys.exit(1)
14
+
15
+ interface = build_interface(cache_examples=False)
16
+ interface.queue()
17
+
18
+ launch_method = partial(
19
+ interface.launch,
20
+ share=False,
21
+ debug=True,
22
+ inbrowser=True,
23
+ quiet=False,
24
+ show_api=False,
25
+ )
26
+
27
+ exit_code = run_main(launch_method)
28
+ sys.exit(exit_code)
29
+
30
+
31
+ run()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ zho-tts>=0.0.2