Low maintenance activity. Last release 3 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install espnet-tts-frontendREADME as published on PyPI with version 0.0.4.
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("”あらゆる” 現実を 〜 ’すべて’ 自分の ほうへ ねじ曲げたのだ。")
'"あらゆる" 現実を ー \'すべて\' 自分の ほうへ ねじ曲げたのだ。'