Skip to main content

ESPnet TTS Frontend

PyPI version Python Versions Downloads CI

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

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.4.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

espnet_tts_frontend-0.0.4-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file espnet_tts_frontend-0.0.4.tar.gz.

File metadata

  • Download URL: espnet_tts_frontend-0.0.4.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for espnet_tts_frontend-0.0.4.tar.gz
Algorithm Hash digest
SHA256 76fc9e8a1d13e699f727b533d4d7587e2631ece76c14e99cce5354872f5dea10
MD5 1076e3ee5f39d7df48492e851fb5ad21
BLAKE2b-256 e8091a96793b920271f9cd923a8fc62f158ef9f593af2a01a373e084c9e95ce9

See more details on using hashes here.

Provenance

The following attestation bundles were made for espnet_tts_frontend-0.0.4.tar.gz:

Publisher: publish_python_package.yml on espnet/espnet_tts_frontend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file espnet_tts_frontend-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for espnet_tts_frontend-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e8fe37c69cb27c08e69179348bb1e3546a24a9375168db230f4f9ed8b24a10fd
MD5 22c8b0e2f66329fdae5b13b5bea2507a
BLAKE2b-256 490f67eda7429cd8228492918dcc566fa0501d2b8cdf8b6ee06b3ab7affce8af

See more details on using hashes here.

Provenance

The following attestation bundles were made for espnet_tts_frontend-0.0.4-py3-none-any.whl:

Publisher: publish_python_package.yml on espnet/espnet_tts_frontend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page