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.1.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for espnet_tts_frontend-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e0df9a895b7f751379a860a8d0688677b1d0f014abe0f553570abe6a565f295 |
|
MD5 | 97384adf1c1df1549a8432e2ab9d8878 |
|
BLAKE2b-256 | 3eac8414b94ffea6d216fa1fe5a4a928ba3eee04202476ec8d74a5065ff35aed |
Close
Hashes for espnet_tts_frontend-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920a147d3a3b4f80d74a088d3c00585687343716a811ed78cc3ea9b8d72c80af |
|
MD5 | c8e380f75dbb55e89e0e011535d378eb |
|
BLAKE2b-256 | 786270a78120e5a2046071f63715b219bb0b5a7e2bc9483bf3c51941c199f9a8 |