No project description provided
Project description
ESPnet TTS Frontend
A tools collection of text frontend for ESPnet tts recipes.
Install
pip install espnet_tts_frontend
Install with pyopenjtalk
- Requires cmake and cython
git clone https://github.com/espnet/espnet_tts_frontend
cd espnet_tts_frontend/
python setup.py pyopenjtalk
# OR
# pip install --global-option=pyopenjtalk -e espnet_tts_frontend
FIXME(kamo): Support direct installation from git repo.
Usage
English:
tacotron_cleaner
Derived from https://github.com/keithito/tacotron
>>> import tacotron_cleaner.cleaners
>>> tacotron_cleaner.cleaners.custom_english_cleaners("(Hello-World); & jr. & dr.")
'HELLO WORLD, AND JUNIOR AND DOCTOR'
g2p_en
https://github.com/Kyubyong/g2p
>>> from g2p_en import G2p # Automatically run downloading for the first time
[nltk_data] Downloading package averaged_perceptron_tagger to
...
>>> g2p = G2p()
>>> g2p("hello world")
['HH', 'AH0', 'L', 'OW1', ' ', 'W', 'ER1', 'L', 'D']
Japanese
jaconv
https://github.com/ikegami-yukino/jaconv/
>>> jaconv.normalize("”あらゆる” 現実を 〜 ’すべて’ 自分の ほうへ ねじ曲げたのだ。")
'"あらゆる" 現実を ー \'すべて\' 自分の ほうへ ねじ曲げたのだ。'
pyopenjtalk
https://github.com/r9y9/pyopenjtalk
# Automatically run downloading for the first time
>>> pyopenjtalk.g2p("あらゆる 現実を すべて 自分の ほうへ ねじ曲げたのだ。", kana=True)
'アラユル\u3000ゲンジツヲ\u3000スベテ\u3000ジブンノ\u3000ホーエ\u3000ネジマゲタノダ。'
>>> pyopenjtalk.g2p("あらゆる 現実を すべて 自分の ほうへ ねじ曲げたのだ。", kana=False)
'a r a y u r u pau g e N j i ts u o pau s u b e t e pau j i b u N n o pau h o o e pau n e j i m a g e t a n o d a'
Vietnamese
vietnamese_cleaner
>>> import vietnamese_cleaner.vietnamese_cleaner
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
espnet_tts_frontend-0.0.3.tar.gz
(10.5 kB
view details)
Built Distribution
File details
Details for the file espnet_tts_frontend-0.0.3.tar.gz
.
File metadata
- Download URL: espnet_tts_frontend-0.0.3.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4644dd65c57183663733b1c146c2c4fc5303ae9a4645279b5bdaad7a7b17d4e |
|
MD5 | bd66d7696305803d03c56fe650354fc7 |
|
BLAKE2b-256 | 51a102798e8cc2062adf0e40c6dda4bb9424eb18da38f919448fdc038d912cb4 |
File details
Details for the file espnet_tts_frontend-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: espnet_tts_frontend-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5412326b5d6915ecdfddf484722b29c2350b471f31d00a27fd0bab9c9fe326b5 |
|
MD5 | 6443b09b17a3da72cbb464fc096fe7e3 |
|
BLAKE2b-256 | e0abc1e882c7dcc9241d9e422cb3b4f6554a93d5557d560e8ce918c183a80bd8 |