Skip to main content

jtalkpy

Python rapper module of open_jtalk

Install

pip install jtalkpy

In order to use this module, open_jtalk command must be able to use. See OpenJtalk.

For Ubuntu system

sudo apt-get install open-jtalk open-jtalk-mecab-naist-jdic hts-voice-nitech-jp-atr503-m001

dict_dir should be /var/lib/mecab/dic/open-jtalk/naist-jdic

voice_file should be /usr/share/hts-voice/nitech-jp-atr503-m001/nitech_jp_atr503_m001.htsvoice

For other systems

Pleanse install from souce.

VOICE FILES

There are many open source HTS voice model files.

This page (Japanse) introduces many models.

Usage

from jtalkpy import Jtalk
dict_dir = "/var/lib/mecab/dic/open-jtalk/naist-jdic"
voice_file = "/usr/share/hts-voice/nitech-jp-atr503-m001/nitech_jp_atr503_m001.htsvoice"
# 
jtalk = Jtalk(dict_dir, voice_file)
jtalk.from_string("こんにちは、世界", output_file="/home/ubuntu/jtalk_wavs/hello.wav")

Open Jtalk options can be set at initialization of Jtalk object. And when from_string is called, you can also overwrite these options temporary.

Contribution

Feel free to create pull request.

  1. Fork it ( http://github.com/yhay81/jtalkpy/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT

Release files for jtalkpy 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jtalkpy 1.0.0
File Size Uploaded
jtalkpy-1.0.0.tar.gz 4.8 kB Details

Release files / jtalkpy-1.0.0.tar.gz

Download URL jtalkpy-1.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b58bcfcbaf538ad80fea3057520a9aaf018c57e9594796cd061f653d00eff5d4
BLAKE2b-256 checksum
How to use checksums
1ba05d767516515a091278c5d49cfe863e14a838de9247e98e1825e15c8cc368
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

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