No project description provided
Project description
ESPnet TTS Frontend
A tool collections 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
Built Distribution
Close
Hashes for espnet_tts_frontend-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6367086d25a8e9ac4573b41a3b83534e3f6451d46e2e661c2370891ed6ff6b0e |
|
MD5 | 2a60f14bbaf24f71058b5928e1d1f7d9 |
|
BLAKE2b-256 | da35cda9c2db94ebd2b4e24cce22c7e825be60301b668c8782557b4cf62c6619 |
Close
Hashes for espnet_tts_frontend-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d2b39bf992508e6e4234d42f3464e08c5b81d78a9046678f634035e5180969 |
|
MD5 | f40db64d84b6cd033c652c7514290f8b |
|
BLAKE2b-256 | 36cca9d4115a7f93ebe65217508eb5d3ea71124822addb8dd2cfb8a168f90f54 |