Skip to main content

Python rapper module of open_jtalk

Project description

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

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

jtalkpy-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file jtalkpy-1.0.0.tar.gz.

File metadata

  • Download URL: jtalkpy-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for jtalkpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b58bcfcbaf538ad80fea3057520a9aaf018c57e9594796cd061f653d00eff5d4
MD5 a459c2c14c4f7da3840f2fdc80f9401a
BLAKE2b-256 1ba05d767516515a091278c5d49cfe863e14a838de9247e98e1825e15c8cc368

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page