Skip to content

Commit dc16b87

Browse files
committed
rename from zh-tts to zho-tts
1 parent 6864aab commit dc16b87

40 files changed

+85
-85
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ venv.bak/
109109
.vscode
110110

111111
# custom
112-
# zh_tts/*.tests.py
112+
# zho_tts/*.tests.py
113113
output
114114
scripts
115115
*_debug/

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cff-version: 1.2.0
2-
title: zh-tts
2+
title: zho-tts
33
abstract: Command-line interface and Python library for synthesizing Chinese texts into speech.
44
message: >-
55
If you use this software, please cite it using the

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
graft src/zh_tts_tests/
2-
graft src/zh_tts_cli_tests/
1+
graft src/zho_tts_tests/
2+
graft src/zho_tts_cli_tests/
33

44
include \
55
pylintrc \

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
zh-tts = {editable = true, path = "."}
7+
zho-tts = {editable = true, path = "."}
88
autopep8 = "*"
99
pylint = "*"
1010
pycodestyle = "*"

Pipfile.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# zh-tts
1+
# zho-tts
22

3-
[![PyPI](https://img.shields.io/pypi/v/zh-tts.svg)](https://pypi.python.org/pypi/zh-tts)
4-
![PyPI](https://img.shields.io/pypi/pyversions/zh-tts.svg)
3+
[![PyPI](https://img.shields.io/pypi/v/zho-tts.svg)](https://pypi.python.org/pypi/zho-tts)
4+
![PyPI](https://img.shields.io/pypi/pyversions/zho-tts.svg)
55
[![pytorch](https://img.shields.io/badge/PyTorch_2.0+-ee4c2c?logo=pytorch&logoColor=white)](https://pytorch.org/get-started/pytorch-2.0/)
66
[![MIT](https://img.shields.io/github/license/stefantaubert/zh-tts.svg)](https://github.com/stefantaubert/zh-tts/blob/master/LICENSE)
7-
[![PyPI](https://img.shields.io/pypi/wheel/zh-tts.svg)](https://pypi.python.org/pypi/zh-tts/#files)
8-
![PyPI](https://img.shields.io/pypi/implementation/zh-tts.svg)
7+
[![PyPI](https://img.shields.io/pypi/wheel/zho-tts.svg)](https://pypi.python.org/pypi/zho-tts/#files)
8+
![PyPI](https://img.shields.io/pypi/implementation/zho-tts.svg)
99
[![PyPI](https://img.shields.io/github/commits-since/stefantaubert/zh-tts/latest/master.svg)](https://github.com/stefantaubert/zh-tts/compare/v0.0.1...master)
1010
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10512789.svg)](https://doi.org/10.5281/zenodo.10512789)
1111

@@ -14,20 +14,20 @@ Command-line interface and Python library for synthesizing Chinese texts into sp
1414
## Installation
1515

1616
```sh
17-
pip install zh-tts --user
17+
pip install zho-tts --user
1818
```
1919

2020
## Example synthesis
2121

2222
```sh
23-
zh-tts synthesize "长江 航务 管理局 和 长江 轮船 总公司 最近 决定 安排 一百三十三 艘 客轮 迎接 长江 干线 春运。"
23+
zho-tts synthesize "长江 航务 管理局 和 长江 轮船 总公司 最近 决定 安排 一百三十三 艘 客轮 迎接 长江 干线 春运。"
2424
```
2525

2626
The output can be listened [here](https://github.com/stefantaubert/zh-tts/raw/master/examples/synthesize.wav).
2727

2828
```sh
2929
# Same example using IPA input
30-
zh-tts synthesize-ipa "ʈʂː|a˧˩˧˘|ŋ|tɕ˘|j|a˥˘|ŋ˘|SIL0|x|a˧˥˘|ŋ|u˥˩|SIL0|k|w|a˧˩˧|n|l˘|i˧˩˧|tɕː|y˧˥ˑ|SIL0|x|ɤ˧˥|SIL0|ʈʂː|a˧˩˧˘|ŋ|tɕ˘|j|a˥˘|ŋ|SIL0|l|w|ə˧˥|n|ʈʂʰ˘|w|a˧˥|n|SIL0|ts˘|ʊ˧˩˧|ŋ˘|kː|ʊ˥|ŋ|s|ɹ̩˥ˑ|SIL0|ts|w˘|ei̯˥˩|tɕ|i˥˩˘|n|SIL0|tɕ|ɥ|e˧˥|t|i˥˩|ŋ|SIL3|a˥|n|pʰ|ai̯˧˥|SIL0|i˥ˑ|p|ai̯˧˩˧|s|a˥˘|n|ʂ˘|ɻ̩˧˥|s|a˥|n|SIL0|s˘|ou̯˥|SIL0|kʰˑ|ɤ˥˩|lː|wˑ|ə˧˥ˑ|n|SIL0|i˧˥ː|ŋ|tɕ˘|j˘|e˥|SIL0|ʈʂː|a˧˩˧|ŋ|tɕ˘|j|a˥˘|ŋ|SIL0|k˘|a˥˩|n|ɕ|j˘|ɛ˥˩|n˘|SIL0|ʈʂʰˑ|w˘|ə˥˘|nː|y˥˩ˑ|nː|。"
30+
zho-tts synthesize-ipa "ʈʂː|a˧˩˧˘|ŋ|tɕ˘|j|a˥˘|ŋ˘|SIL0|x|a˧˥˘|ŋ|u˥˩|SIL0|k|w|a˧˩˧|n|l˘|i˧˩˧|tɕː|y˧˥ˑ|SIL0|x|ɤ˧˥|SIL0|ʈʂː|a˧˩˧˘|ŋ|tɕ˘|j|a˥˘|ŋ|SIL0|l|w|ə˧˥|n|ʈʂʰ˘|w|a˧˥|n|SIL0|ts˘|ʊ˧˩˧|ŋ˘|kː|ʊ˥|ŋ|s|ɹ̩˥ˑ|SIL0|ts|w˘|ei̯˥˩|tɕ|i˥˩˘|n|SIL0|tɕ|ɥ|e˧˥|t|i˥˩|ŋ|SIL3|a˥|n|pʰ|ai̯˧˥|SIL0|i˥ˑ|p|ai̯˧˩˧|s|a˥˘|n|ʂ˘|ɻ̩˧˥|s|a˥|n|SIL0|s˘|ou̯˥|SIL0|kʰˑ|ɤ˥˩|lː|wˑ|ə˧˥ˑ|n|SIL0|i˧˥ː|ŋ|tɕ˘|j˘|e˥|SIL0|ʈʂː|a˧˩˧|ŋ|tɕ˘|j|a˥˘|ŋ|SIL0|k˘|a˥˩|n|ɕ|j˘|ɛ˥˩|n˘|SIL0|ʈʂʰˑ|w˘|ə˥˘|nː|y˥˩ˑ|nː|。"
3131
```
3232

3333
The output can be listened [here](https://github.com/stefantaubert/zh-tts/raw/master/examples/synthesize-ipa.wav).
@@ -38,7 +38,7 @@ The output can be listened [here](https://github.com/stefantaubert/zh-tts/raw/ma
3838
from pathlib import Path
3939
from tempfile import gettempdir
4040

41-
from zh_tts import Synthesizer, Transcriber, normalize_audio, save_audio
41+
from zho_tts import Synthesizer, Transcriber, normalize_audio, save_audio
4242

4343
text = "长江 航务 管理局 和 长江 轮船 总公司 最近 决定 安排 一百三十三 艘 客轮 迎接 长江 干线 春运。"
4444

@@ -99,7 +99,7 @@ Tones and duration markers can be combined, e.g., ə˧˥ː
9999
If you want to cite this repo, you can use the BibTeX-entry generated by GitHub (see *About => Cite this repository*).
100100

101101
```txt
102-
Taubert, S. (2024). zh-tts (Version 0.0.1) [Computer software]. https://doi.org/10.5281/zenodo.10512789
102+
Taubert, S. (2024). zho-tts (Version 0.0.1) [Computer software]. https://doi.org/10.5281/zenodo.10512789
103103
```
104104

105105
## Acknowledgments

pyproject.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "zh-tts"
2+
name = "zho-tts"
33
version = "0.0.1"
44
description = "Command-line interface and Python library for synthesizing Chinese texts into speech."
55
readme = "README.md"
@@ -57,34 +57,34 @@ Homepage = "https://github.com/stefantaubert/zh-tts"
5757
Issues = "https://github.com/stefantaubert/zh-tts/issues"
5858

5959
[project.scripts]
60-
zh-tts = "zh_tts_cli.cli:run"
60+
zho-tts = "zho_tts_cli.cli:run"
6161

6262
[tool.mypy]
6363
python_version = "3.11"
6464
warn_return_any = true
6565
warn_unused_configs = true
6666
ignore_missing_imports = true
67-
packages = ["zh_tts", "zh_tts_cli"]
67+
packages = ["zho_tts", "zho_tts_cli"]
6868

6969
[tool.setuptools.packages.find]
7070
where = ["src"]
71-
include = ["zh_tts", "zh_tts.*", "zh_tts_cli", "zh_tts_cli.*"]
71+
include = ["zho_tts", "zho_tts.*", "zho_tts_cli", "zho_tts_cli.*"]
7272
exclude = [
73-
"zh_tts_tests",
74-
"zh_tts_tests.*",
75-
"zh_tts_cli_tests",
76-
"zh_tts_cli_tests.*",
77-
"zh_tts_debug",
78-
"zh_tts_debug.*",
79-
"zh_tts_cli_debug",
80-
"zh_tts_cli_debug.*",
73+
"zho_tts_tests",
74+
"zho_tts_tests.*",
75+
"zho_tts_cli_tests",
76+
"zho_tts_cli_tests.*",
77+
"zho_tts_debug",
78+
"zho_tts_debug.*",
79+
"zho_tts_cli_debug",
80+
"zho_tts_cli_debug.*",
8181
]
8282
namespaces = true
8383

8484
[tool.pytest.ini_options]
8585
log_cli = true
8686
log_level = "DEBUG"
87-
testpaths = ["src/zh_tts_tests", "src/zh_tts_cli_tests"]
87+
testpaths = ["src/zho_tts_tests", "src/zho_tts_cli_tests"]
8888

8989
[tool.autopep8]
9090
indent-size = 2
@@ -94,7 +94,7 @@ max_line_length = 100
9494
[tool.isort]
9595
line_length = 100
9696
indent = 2
97-
known_first_party = ["zh_tts", "zh_tts_cli"]
97+
known_first_party = ["zho_tts", "zho_tts_cli"]
9898
known_third_party = [
9999
"scipy",
100100
"numpy",
@@ -117,9 +117,9 @@ deps =
117117
pytest
118118
commands =
119119
pytest
120-
zh-tts
121-
zh-tts -v
122-
zh-tts -h
120+
zho-tts
121+
zho-tts -v
122+
zho-tts -h
123123
"""
124124

125125
[build-system]

src/zh_tts/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/zho_tts/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from zho_tts.helper import get_default_device, normalize_audio
2+
from zho_tts.io import save_audio
3+
from zho_tts.synthesizer import AVAILABLE_SPEAKERS, Synthesizer
4+
from zho_tts.transcriber import Transcriber

0 commit comments

Comments
 (0)