toannhu / pyopenjtalk

Python wrapper for OpenJTalk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyopenjtalk

PyPI Build Status License

THIS IS ALPHA VERSION!

A python wrapper for OpenJTalk. Note that this is built on top of a modified version of OpenJTalk.

It's currently limited for text processing frontend functionality.

Installation

The package is based on cython and built on top of the shared library of the OpenJTalk. Please have a look at the travis.yml and see how the shared library is installed. After you have installed the OpenJTalk shared library, then the installation of the package is just as follows:

pip install pyopenjtalk

Quick demo

In [1]: import pyopenjtalk

In [2]: pyopenjtalk.g2p("こんにちは")
Out[2]: 'k o N n i ch i w a'

In [3]: pyopenjtalk.g2p("こんにちは", kana=True)
Out[3]: 'コンニチワ'

About

Python wrapper for OpenJTalk

License:Other


Languages

Language:Python 97.5%Language:Shell 2.5%