Code Monkey home page Code Monkey logo

pyopenjtalk's Introduction

pyopenjtalk

PyPI Python package Build Status License DOI

A python wrapper for OpenJTalk.

The package consists of two core components:

  • Text processing frontend based on OpenJTalk
  • Speech synthesis backend using HTSEngine

Notice

  • The package is built with the modified version of OpenJTalk. The modified version provides the same functionality with some improvements (e.g., cmake support) but is technically different from the one from HTS working group.
  • The package also uses the modified version of hts_engine_API. The same applies as above.

Before using the pyopenjtalk package, please have a look at the LICENSE for the two software.

Build requirements

The python package relies on cython to make python bindings for open_jtalk and hts_engine_API. You must need the following tools to build and install pyopenjtalk:

  • C/C++ compilers (to build C/C++ extentions)
  • cmake
  • cython

Supported platforms

  • Linux
  • Mac OSX
  • Windows (MSVC) (see this PR)

Installation

pip install pyopenjtalk

Development

To build the package locally, you will need to make sure to clone open_jtalk and hts_engine_API.

git submodule update --recursive --init

and then run

pip install -e .

Quick demo

Please check the notebook version here (nbviewer).

TTS

In [1]: import pyopenjtalk

In [2]: from scipy.io import wavfile

In [3]: x, sr = pyopenjtalk.tts("おめでとうございます")

In [4]: wavfile.write("test.wav", sr, x.astype(np.int16))

Run text processing frontend only

In [1]: import pyopenjtalk

In [2]: pyopenjtalk.extract_fullcontext("こんにちは")
Out[2]:
['xx^xx-sil+k=o/A:xx+xx+xx/B:xx-xx_xx/C:xx_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:xx_xx#xx_xx@xx_xx|xx_xx/G:5_5%0_xx_xx/H:xx_xx/I:xx-xx@xx+xx&xx-xx|xx+xx/J:1_5/K:1+1-5',
'xx^sil-k+o=N/A:-4+1+5/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'sil^k-o+N=n/A:-4+1+5/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'k^o-N+n=i/A:-3+2+4/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'o^N-n+i=ch/A:-2+3+3/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'N^n-i+ch=i/A:-2+3+3/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'n^i-ch+i=w/A:-1+4+2/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'i^ch-i+w=a/A:-1+4+2/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'ch^i-w+a=sil/A:0+5+1/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'i^w-a+sil=xx/A:0+5+1/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'w^a-sil+xx=xx/A:xx+xx+xx/B:xx-xx_xx/C:xx_xx+xx/D:xx+xx_xx/E:5_5!0_xx-xx/F:xx_xx#xx_xx@xx_xx|xx_xx/G:xx_xx%xx_xx_xx/H:1_5/I:xx-xx@xx+xx&xx-xx|xx+xx/J:xx_xx/K:1+1-5']

Please check lab_format.pdf in HTS-demo_NIT-ATR503-M001.tar.bz2 for more details about full-context labels.

Grapheme-to-phoeneme (G2P)

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]: 'コンニチワ'

Create/Apply user dictionary

  1. Create a CSV file (e.g. user.csv) and write custom words like below:
GNU,,,1,名詞,一般,*,*,*,*,GNU,グヌー,グヌー,2/3,*
  1. Call mecab_dict_index to compile the CSV file.
In [1]: import pyopenjtalk

In [2]: pyopenjtalk.mecab_dict_index("user.csv", "user.dic")
reading user.csv ... 1
emitting double-array: 100% |###########################################|

done!
  1. Call update_global_jtalk_with_user_dict to apply the user dictionary.
In [3]: pyopenjtalk.g2p("GNU")
Out[3]: 'j i i e n u y u u'

In [4]: pyopenjtalk.update_global_jtalk_with_user_dict("user.dic")

In [5]: pyopenjtalk.g2p("GNU")
Out[5]: 'g u n u u'

About run_marine option

After v0.3.0, the run_marine option has been available for estimating the Japanese accent with the DNN-based method (see marine). If you want to use the feature, please install pyopenjtalk as below;

pip install pyopenjtalk[marine]

And then, you can use the option as the following examples;

In [1]: import pyopenjtalk

In [2]: x, sr = pyopenjtalk.tts("おめでとうございます", run_marine=True) # for TTS

In [3]: label = pyopenjtalk.extract_fullcontext("こんにちは", run_marine=True) # for text processing frontend only

LICENSE

Acknowledgements

HTS Working Group for their dedicated efforts to develop and maintain Open JTalk.

pyopenjtalk's People

Contributors

6gsn avatar oocytanb avatar r9y9 avatar sabonerune avatar sharvil avatar yamachu avatar ychuang2112 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyopenjtalk's Issues

Let the user have the ability to edit g2p mapping for custom mapping.

When I'm working with my problem, I found some characters are pronounced differently with the current mapping, like 魂(たましい) is mostly used, but in some occassions, it is instead 魂(たま). The current config made this wrong. So I would like to suggest the author to give the user with some ability to customise it.

Build compatibility with Cython 3.0

Known-Good Solution

With Python==3.10, MSVC==14.3 (VS 2022), and Cython<3.0 (e.g., cython==0.29.35), I was able to successfully build pyopenjtalk on Windows 11 using

  • either pip install pyopenjtalk --no-build-isolation to install v0.3.0,
  • or pip install git+https://github.com/r9y9/pyopenjtalk.git --no-build-isolation to install a nightly build

Symptom

However, with the official release of Cython 3.0 9 hours ago, the build will fail without the --no-build-isolation option (i.e., using the latest Cython by default, rather than the current available version), with the following error message:

...
Error compiling Cython file:
------------------------------------------------------------
...
from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
^
------------------------------------------------------------

pyopenjtalk\openjtalk.pyx:13:0: 'openjtalk\mecab.pxd' not found
...

FYI, Line 13 is from openjtalk.mecab cimport Mecab, Mecab_initialize, ...

Basically, Cython was unable to include the path <...>/pyopenjtalk/pyopenjtalk and thus unable to find the openjtalk/*.pyx and htsengine/*.pyx submodules.

Possible Workarounds

If I copy the folder pyopenjtalk/pyopenjtalk/openjtalk and pyopenjtalk/pyopenjtalk/htsengine (which contain all the pyx files) to their parent folder (i.e., into pyopenjtalk/openjtalk and pyopenjtalk/htsengine respectively), the build is OK with the latest Cython version. But in doing so, one has to make the corresponding changes and then build locally.

Of course, as I mentioned in the first section, downgrading the cython version and adding the --no-build-isolation option can be another much easier workaround.

I have minimum experience with Cython, so I can't determine whether this is an intended change or just a bug of the latest version of Cython. So I am posting my experience here in the hope of helping other coders who might run into this problem in the future. Ideally, of course, it's best if the author could kindly update the package for Cython 3.0 compatibility or point out this known issue in the README.

cython compile issue

i met cython compile issue in pyopenjtalk
i want to know which version of cython can compile pyopenjtalk thanks

Building source code from pypi fails with python3.11.

I don't think it's officially supported yet.
The reason I opened this issue is that if I install from git it succeeds.

# Failed
pip install pyopenjtalk
# Success
pip install git+https://github.com/r9y9/[email protected]

Probably because the generated code in the sdist was not compatible for Python3.11.
I think the next release should include code generated by a newer version of Cython in sdist.

note:
Maybe sdist shouldn't contain generated code.

Windows support

It should be possible to support Windows as well, but I don't have a machine to test. Would be nice if anyone wants to contribute to this.

Don't include mecab/config.h for release tar balls

Otherwise, config.h won't be generated based on the user's environment.

Ref:

pyopenjtalk/setup.py

Lines 145 to 152 in 86c8bec

if not exists(join(src_top, "mecab", "src", "config.h")):
cwd = os.getcwd()
build_dir = join(src_top, "build")
os.makedirs(build_dir, exist_ok=True)
os.chdir(build_dir)
r = run(["cmake", ".."])
r.check_returncode()
os.chdir(cwd)

Fail to install pyopenjtalk by pip on M1 platform

I keep getting error while trying to install pyopenjtalk to my M1 Mac by the command: pip install pyopenjtalk
I think the reason for the error should come from building numpy according to the error log:

    Building wheels for collected packages: numpy  
        Building wheel for numpy (pyproject.toml): started  
        Building wheel for numpy (pyproject.toml): finished with status 'error'  
        error: subprocess-exited-with-error  

The pyopenjtalk may use an older version(numPy 1.19.5) for construction, and it may not support Apple Silicon platform.
Also, I try to edit the .toml file and build this package locally(Method from), it installed successfully. But when I import the package it failed and said the Array API version of numpy is not correct.

    RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf

However, when I used the command pip install pyopenjtalk --no-use-pep517 , everything's goes well.
I would like to know where exactly the problem is and if it can be fixed.

OS: macOS Monterey 12.3.1 with M1 Max
Python Version: 3.10.3
Openjtalk version: 0.2.0
numpy version: 1.22.4
Cython version: 0.29.32
Python and all required site-packages is Arm-64 version

Raise errors if cmake fails to run

pyopenjtalk/setup.py

Lines 141 to 151 in 83bf05c

# generate config.h for mecab
# NOTE: need to run cmake to generate config.h
# we could do it on python side but it would be very tricky,
# so far let's use cmake tool
if not exists(join(src_top, "mecab", "src", "config.h")):
cwd = os.getcwd()
build_dir = join(src_top, "build")
os.makedirs(build_dir, exist_ok=True)
os.chdir(build_dir)
run(["cmake", ".."])
os.chdir(cwd)

ERROR: Failed building wheel for pyopenjtalk

 Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cimport cython

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:14:0: 'openjtalk\njd\NJD_print.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cimport cython

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:14:0: 'openjtalk\njd\NJD_clear.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cimport cython

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:15:0: 'openjtalk.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:16:0: 'openjtalk\jpcommon.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:16:0: 'openjtalk\jpcommon\JPCommon.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:16:0: 'openjtalk\jpcommon\JPCommon_initialize.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:16:0: 'openjtalk\jpcommon\JPCommon_make_label.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:17:0: 'openjtalk\jpcommon\JPCommon_get_label_size.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.mecab cimport Mecab, Mecab_initialize, Mecab_load, Mecab_analysis
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:17:0: 'openjtalk\jpcommon\JPCommon_get_label_feature.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:18:0: 'openjtalk\jpcommon\JPCommon_refresh.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.mecab cimport Mecab_get_feature, Mecab_get_size, Mecab_refresh, Mecab_clear
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:18:0: 'openjtalk\jpcommon\JPCommon_clear.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.njd cimport NJD, NJD_initialize, NJD_refresh, NJD_print, NJD_clear
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  from openjtalk cimport njd2jpcommon
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:19:0: 'openjtalk\njd2jpcommon.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  from openjtalk cimport njd2jpcommon
  from openjtalk.text2mecab cimport text2mecab
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:20:0: 'openjtalk\text2mecab.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk cimport njd as _njd
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  from openjtalk cimport njd2jpcommon
  from openjtalk.text2mecab cimport text2mecab
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:20:0: 'openjtalk\text2mecab\text2mecab.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  from openjtalk cimport njd2jpcommon
  from openjtalk.text2mecab cimport text2mecab
  from openjtalk.mecab2njd cimport mecab2njd
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:21:0: 'openjtalk\mecab2njd.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.jpcommon cimport JPCommon, JPCommon_initialize,JPCommon_make_label
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  from openjtalk cimport njd2jpcommon
  from openjtalk.text2mecab cimport text2mecab
  from openjtalk.mecab2njd cimport mecab2njd
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:21:0: 'openjtalk\mecab2njd\mecab2njd.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.jpcommon cimport JPCommon_get_label_size, JPCommon_get_label_feature
  from openjtalk.jpcommon cimport JPCommon_refresh, JPCommon_clear
  from openjtalk cimport njd2jpcommon
  from openjtalk.text2mecab cimport text2mecab
  from openjtalk.mecab2njd cimport mecab2njd
  from openjtalk.njd2jpcommon cimport njd2jpcommon
  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:22:0: 'openjtalk\njd2jpcommon\njd2jpcommon.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk cimport njd2jpcommon
  from openjtalk.text2mecab cimport text2mecab
  from openjtalk.mecab2njd cimport mecab2njd
  from openjtalk.njd2jpcommon cimport njd2jpcommon

  cdef njd_node_get_string(_njd.NJDNode* node):
                           ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:24:25: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.njd2jpcommon cimport njd2jpcommon

  cdef njd_node_get_string(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_string(node))).decode("utf-8")

  cdef njd_node_get_pos(_njd.NJDNode* node):
                        ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:27:22: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_string(node))).decode("utf-8")

  cdef njd_node_get_pos(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos(node))).decode("utf-8")

  cdef njd_node_get_pos_group1(_njd.NJDNode* node):
                               ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:30:29: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_pos(node))).decode("utf-8")

  cdef njd_node_get_pos_group1(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group1(node))).decode("utf-8")

  cdef njd_node_get_pos_group2(_njd.NJDNode* node):
                               ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:33:29: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_pos_group1(node))).decode("utf-8")

  cdef njd_node_get_pos_group2(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group2(node))).decode("utf-8")

  cdef njd_node_get_pos_group3(_njd.NJDNode* node):
                               ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:36:29: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_pos_group2(node))).decode("utf-8")

  cdef njd_node_get_pos_group3(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group3(node))).decode("utf-8")

  cdef njd_node_get_ctype(_njd.NJDNode* node):
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:39:24: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_pos_group3(node))).decode("utf-8")

  cdef njd_node_get_ctype(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_ctype(node))).decode("utf-8")

  cdef njd_node_get_cform(_njd.NJDNode* node):
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:42:24: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_ctype(node))).decode("utf-8")

  cdef njd_node_get_cform(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_cform(node))).decode("utf-8")

  cdef njd_node_get_orig(_njd.NJDNode* node):
                         ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:45:23: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_cform(node))).decode("utf-8")

  cdef njd_node_get_orig(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_orig(node))).decode("utf-8")

  cdef njd_node_get_read(_njd.NJDNode* node):
                         ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:48:23: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_orig(node))).decode("utf-8")

  cdef njd_node_get_read(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_read(node))).decode("utf-8")

  cdef njd_node_get_pron(_njd.NJDNode* node):
                         ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:51:23: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_read(node))).decode("utf-8")

  cdef njd_node_get_pron(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pron(node))).decode("utf-8")

  cdef njd_node_get_acc(_njd.NJDNode* node):
                        ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:54:22: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return (<bytes>(_njd.NJDNode_get_pron(node))).decode("utf-8")

  cdef njd_node_get_acc(_njd.NJDNode* node):
      return _njd.NJDNode_get_acc(node)

  cdef njd_node_get_mora_size(_njd.NJDNode* node):
                              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:57:28: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return _njd.NJDNode_get_acc(node)

  cdef njd_node_get_mora_size(_njd.NJDNode* node):
      return _njd.NJDNode_get_mora_size(node)

  cdef njd_node_get_chain_rule(_njd.NJDNode* node):
                               ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:60:29: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      return _njd.NJDNode_get_mora_size(node)

  cdef njd_node_get_chain_rule(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_chain_rule(node))).decode("utf-8")

  cdef njd_node_get_chain_flag(_njd.NJDNode* node):
                               ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:63:29: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_chain_flag(_njd.NJDNode* node):
        return _njd.NJDNode_get_chain_flag(node)


  cdef njd_node_print(_njd.NJDNode* node):
                      ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:67:20: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      njd_node_get_chain_rule(node),
      njd_node_get_chain_flag(node)
      )


  cdef njd_print(_njd.NJD* njd):
                 ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:86:15: 'NJD' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      """OpenJTalk

      Args:
          dn_mecab (bytes): Dictionaly path for MeCab.
      """
      cdef Mecab* mecab
           ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:100:9: 'Mecab' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

      Args:
          dn_mecab (bytes): Dictionaly path for MeCab.
      """
      cdef Mecab* mecab
      cdef NJD* njd
           ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:101:9: 'NJD' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      Args:
          dn_mecab (bytes): Dictionaly path for MeCab.
      """
      cdef Mecab* mecab
      cdef NJD* njd
      cdef JPCommon* jpcommon
           ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:102:9: 'JPCommon' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      njd_node_get_chain_flag(node)
      )


  cdef njd_print(_njd.NJD* njd):
      cdef _njd.NJDNode* node = njd.head
           ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:87:9: 'NJDNode' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from openjtalk.text2mecab cimport text2mecab
  from openjtalk.mecab2njd cimport mecab2njd
  from openjtalk.njd2jpcommon cimport njd2jpcommon

  cdef njd_node_get_string(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_string(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:25:24: cimported module has no attribute 'NJDNode_get_string'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_string(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_string(node))).decode("utf-8")

  cdef njd_node_get_pos(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:28:24: cimported module has no attribute 'NJDNode_get_pos'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_pos(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos(node))).decode("utf-8")

  cdef njd_node_get_pos_group1(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group1(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:31:24: cimported module has no attribute 'NJDNode_get_pos_group1'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_pos_group1(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group1(node))).decode("utf-8")

  cdef njd_node_get_pos_group2(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group2(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:34:24: cimported module has no attribute 'NJDNode_get_pos_group2'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_pos_group2(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group2(node))).decode("utf-8")

  cdef njd_node_get_pos_group3(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group3(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:37:24: cimported module has no attribute 'NJDNode_get_pos_group3'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_pos_group3(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pos_group3(node))).decode("utf-8")

  cdef njd_node_get_ctype(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_ctype(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:40:24: cimported module has no attribute 'NJDNode_get_ctype'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_ctype(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_ctype(node))).decode("utf-8")

  cdef njd_node_get_cform(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_cform(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:43:24: cimported module has no attribute 'NJDNode_get_cform'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_cform(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_cform(node))).decode("utf-8")

  cdef njd_node_get_orig(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_orig(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:46:24: cimported module has no attribute 'NJDNode_get_orig'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_orig(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_orig(node))).decode("utf-8")

  cdef njd_node_get_read(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_read(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:49:24: cimported module has no attribute 'NJDNode_get_read'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_read(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_read(node))).decode("utf-8")

  cdef njd_node_get_pron(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pron(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:52:24: cimported module has no attribute 'NJDNode_get_pron'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_pron(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_pron(node))).decode("utf-8")

  cdef njd_node_get_acc(_njd.NJDNode* node):
      return _njd.NJDNode_get_acc(node)
                 ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:55:15: cimported module has no attribute 'NJDNode_get_acc'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_acc(_njd.NJDNode* node):
      return _njd.NJDNode_get_acc(node)

  cdef njd_node_get_mora_size(_njd.NJDNode* node):
      return _njd.NJDNode_get_mora_size(node)
                 ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:58:15: cimported module has no attribute 'NJDNode_get_mora_size'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_mora_size(_njd.NJDNode* node):
      return _njd.NJDNode_get_mora_size(node)

  cdef njd_node_get_chain_rule(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_chain_rule(node))).decode("utf-8")
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:61:24: cimported module has no attribute 'NJDNode_get_chain_rule'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  cdef njd_node_get_chain_rule(_njd.NJDNode* node):
      return (<bytes>(_njd.NJDNode_get_chain_rule(node))).decode("utf-8")

  cdef njd_node_get_chain_flag(_njd.NJDNode* node):
        return _njd.NJDNode_get_chain_flag(node)
                   ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:64:17: cimported module has no attribute 'NJDNode_get_chain_flag'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef Mecab* mecab
      cdef NJD* njd
      cdef JPCommon* jpcommon

      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
                           ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:105:25: 'Mecab' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef Mecab* mecab
      cdef NJD* njd
      cdef JPCommon* jpcommon

      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
                       ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:105:21: new operator can only be applied to a C++ class

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef NJD* njd
      cdef JPCommon* jpcommon

      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
          self.njd = new NJD()
                         ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:106:23: 'NJD' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef NJD* njd
      cdef JPCommon* jpcommon

      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
          self.njd = new NJD()
                     ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:106:19: new operator can only be applied to a C++ class

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef JPCommon* jpcommon

      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
          self.njd = new NJD()
          self.jpcommon = new JPCommon()
                              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:107:28: 'JPCommon' is not a type identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef JPCommon* jpcommon

      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
          self.njd = new NJD()
          self.jpcommon = new JPCommon()
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:107:24: new operator can only be applied to a C++ class

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      def __cinit__(self, bytes dn_mecab=b"/usr/local/dic"):
          self.mecab = new Mecab()
          self.njd = new NJD()
          self.jpcommon = new JPCommon()

          Mecab_initialize(self.mecab)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:109:8: 'Mecab_initialize' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.mecab = new Mecab()
          self.njd = new NJD()
          self.jpcommon = new JPCommon()

          Mecab_initialize(self.mecab)
          NJD_initialize(self.njd)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:110:8: 'NJD_initialize' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          self.njd = new NJD()
          self.jpcommon = new JPCommon()

          Mecab_initialize(self.mecab)
          NJD_initialize(self.njd)
          JPCommon_initialize(self.jpcommon)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:111:8: 'JPCommon_initialize' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
            self._clear()
            raise RuntimeError("Failed to initalize Mecab")


      def _clear(self):
        Mecab_clear(self.mecab)
        ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:120:6: 'Mecab_clear' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
            raise RuntimeError("Failed to initalize Mecab")


      def _clear(self):
        Mecab_clear(self.mecab)
        NJD_clear(self.njd)
        ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:121:6: 'NJD_clear' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...


      def _clear(self):
        Mecab_clear(self.mecab)
        NJD_clear(self.njd)
        JPCommon_clear(self.jpcommon)
        ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:122:6: 'JPCommon_clear' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
        Mecab_clear(self.mecab)
        NJD_clear(self.njd)
        JPCommon_clear(self.jpcommon)

      def _load(self, bytes dn_mecab):
          return Mecab_load(self.mecab, dn_mecab)
                 ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:125:15: 'Mecab_load' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          """Run OpenJTalk's text processing frontend
          """
          if isinstance(text, str):
            text = text.encode("utf-8")
          cdef char buff[8192]
          text2mecab(buff, text)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:134:8: 'text2mecab' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          """
          if isinstance(text, str):
            text = text.encode("utf-8")
          cdef char buff[8192]
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:135:8: 'Mecab_analysis' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          if isinstance(text, str):
            text = text.encode("utf-8")
          cdef char buff[8192]
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:136:8: 'mecab2njd' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          if isinstance(text, str):
            text = text.encode("utf-8")
          cdef char buff[8192]
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
                              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:136:28: 'Mecab_get_feature' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          if isinstance(text, str):
            text = text.encode("utf-8")
          cdef char buff[8192]
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
                                                             ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:136:59: 'Mecab_get_size' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
            text = text.encode("utf-8")
          cdef char buff[8192]
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
          _njd.njd_set_pronunciation(self.njd)
              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:137:12: cimported module has no attribute 'njd_set_pronunciation'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cdef char buff[8192]
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
          _njd.njd_set_pronunciation(self.njd)
          _njd.njd_set_digit(self.njd)
              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:138:12: cimported module has no attribute 'njd_set_digit'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          text2mecab(buff, text)
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
          _njd.njd_set_pronunciation(self.njd)
          _njd.njd_set_digit(self.njd)
          _njd.njd_set_accent_phrase(self.njd)
              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:139:12: cimported module has no attribute 'njd_set_accent_phrase'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          Mecab_analysis(self.mecab, buff)
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
          _njd.njd_set_pronunciation(self.njd)
          _njd.njd_set_digit(self.njd)
          _njd.njd_set_accent_phrase(self.njd)
          _njd.njd_set_accent_type(self.njd)
              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:140:12: cimported module has no attribute 'njd_set_accent_type'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          mecab2njd(self.njd, Mecab_get_feature(self.mecab), Mecab_get_size(self.mecab))
          _njd.njd_set_pronunciation(self.njd)
          _njd.njd_set_digit(self.njd)
          _njd.njd_set_accent_phrase(self.njd)
          _njd.njd_set_accent_type(self.njd)
          _njd.njd_set_unvoiced_vowel(self.njd)
              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:141:12: cimported module has no attribute 'njd_set_unvoiced_vowel'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          _njd.njd_set_pronunciation(self.njd)
          _njd.njd_set_digit(self.njd)
          _njd.njd_set_accent_phrase(self.njd)
          _njd.njd_set_accent_type(self.njd)
          _njd.njd_set_unvoiced_vowel(self.njd)
          _njd.njd_set_long_vowel(self.njd)
              ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:142:12: cimported module has no attribute 'njd_set_long_vowel'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          _njd.njd_set_digit(self.njd)
          _njd.njd_set_accent_phrase(self.njd)
          _njd.njd_set_accent_type(self.njd)
          _njd.njd_set_unvoiced_vowel(self.njd)
          _njd.njd_set_long_vowel(self.njd)
          njd2jpcommon(self.jpcommon, self.njd)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:143:8: 'njd2jpcommon' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          _njd.njd_set_accent_phrase(self.njd)
          _njd.njd_set_accent_type(self.njd)
          _njd.njd_set_unvoiced_vowel(self.njd)
          _njd.njd_set_long_vowel(self.njd)
          njd2jpcommon(self.jpcommon, self.njd)
          JPCommon_make_label(self.jpcommon)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:144:8: 'JPCommon_make_label' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          _njd.njd_set_unvoiced_vowel(self.njd)
          _njd.njd_set_long_vowel(self.njd)
          njd2jpcommon(self.jpcommon, self.njd)
          JPCommon_make_label(self.jpcommon)

          cdef int label_size = JPCommon_get_label_size(self.jpcommon)
                                ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:146:30: 'JPCommon_get_label_size' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          njd2jpcommon(self.jpcommon, self.njd)
          JPCommon_make_label(self.jpcommon)

          cdef int label_size = JPCommon_get_label_size(self.jpcommon)
          cdef char** label_feature
          label_feature = JPCommon_get_label_feature(self.jpcommon)
                          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:148:24: 'JPCommon_get_label_feature' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          njd2jpcommon(self.jpcommon, self.njd)
          JPCommon_make_label(self.jpcommon)

          cdef int label_size = JPCommon_get_label_size(self.jpcommon)
          cdef char** label_feature
          label_feature = JPCommon_get_label_feature(self.jpcommon)
                                                    ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:148:50: Cannot convert Python object to 'char **'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          njd2jpcommon(self.jpcommon, self.njd)
          JPCommon_make_label(self.jpcommon)

          cdef int label_size = JPCommon_get_label_size(self.jpcommon)
          cdef char** label_feature
          label_feature = JPCommon_get_label_feature(self.jpcommon)
                                                    ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:148:50: Storing unsafe C derivative of temporary Python reference

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
            labels.append(<unicode>label_feature[i])

          njd_results = njd_print(self.njd)

          if verbose > 0:
            NJD_print(self.njd)
            ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:159:10: 'NJD_print' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

          if verbose > 0:
            NJD_print(self.njd)

          # Note that this will release memory for label feature
          JPCommon_refresh(self.jpcommon)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:162:8: 'JPCommon_refresh' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          if verbose > 0:
            NJD_print(self.njd)

          # Note that this will release memory for label feature
          JPCommon_refresh(self.jpcommon)
          NJD_refresh(self.njd)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:163:8: 'NJD_refresh' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
            NJD_print(self.njd)

          # Note that this will release memory for label feature
          JPCommon_refresh(self.jpcommon)
          NJD_refresh(self.njd)
          Mecab_refresh(self.mecab)
          ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:164:8: 'Mecab_refresh' is not a constant, variable or function identifier

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              prons = "".join(prons)
          return prons

      def __dealloc__(self):
          self._clear()
          del self.mecab
                  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:196:16: Deletion of non-Python, non-C++ object

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          return prons

      def __dealloc__(self):
          self._clear()
          del self.mecab
          del self.njd
                  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:197:16: Deletion of non-Python, non-C++ object

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

      def __dealloc__(self):
          self._clear()
          del self.mecab
          del self.njd
          del self.jpcommon
                  ^
  ------------------------------------------------------------

  pyopenjtalk\openjtalk.pyx:198:16: Deletion of non-Python, non-C++ object
  Compiling pyopenjtalk\openjtalk.pyx because it changed.
  [1/1] Cythonizing pyopenjtalk\openjtalk.pyx
  Traceback (most recent call last):
    File "c:\users\倪\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "c:\users\倪\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "c:\users\倪\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\build_meta.py", line 434, in build_wheel
      return self._build_with_temp_dir(
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\build_meta.py", line 419, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
      super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
      exec(code, locals())
    File "<string>", line 255, in <module>
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\dist.py", line 1233, in run_command
      super().run_command(command)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 349, in run
      self.run_command("build")
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\dist.py", line 1233, in run_command
      super().run_command(command)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
      self.run_command(cmd_name)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\dist.py", line 1233, in run_command
      super().run_command(command)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
      self.build_extensions()
    File "<string>", line 64, in build_extensions
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions
      self._build_extensions_serial()
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\Cython\Distutils\build_ext.py", line 122, in build_extension
      new_ext = cythonize(
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1134, in cythonize
      cythonize_one(*args)
    File "C:\Users\倪\AppData\Local\Temp\pip-build-env-c_xegd_1\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1301, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: pyopenjtalk\openjtalk.pyx
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyopenjtalk
Failed to build pyopenjtalk
ERROR: Could not build wheels for pyopenjtalk, which is required to install pyproject.toml-based projects

Support for MSVC 14.37 specification changes

概要

日本語のほうが正確にお伝えできると思いますので、日本語で書かせていただきます。

MSVC 14.37において仕様変更が行われたらしく、open_jtalksrc/mecab/src/dictionary.cppで使われているstd::binary_functionfunctionalに含まれているが読み込まれないため、そのままpyopenjtalkをインストールをするとcl.exeがexit code2でエラーを出しインストールができません。またこの仕様変更よって起こったエラーについてコミュニティでも上がっています。

これはアップデートによって影響範囲は広がっていくと考えられるため早急な修正が必要です。

また#include <functional>で検索をかけた感じだとsrc\mecab\src\learner_tagger.cppにincludeされているだけで、さすがにヘッダーには含まれてませんでした。そして、Linux環境(Ubuntu Focal gcc9.4.0)で#include <functional>をすべて削除してもビルドできたことから、僕の知識不足かもしれませんが、以前のMSVCやgccなどはは暗黙的になぜかfunctionalを読み込んでいて、ビルドができていたと考えます。

この修正PRはすぐに送ることができます。

再現手順

  1. MSVC 14.37に更新する(ダウングレードできないので注意してください。)
  2. pyopenjtalkを再インストールする
English with DeepL

Outline

I am writing this in Japanese because I think it is more accurate in Japanese.

The std::binary_function used in src/mecab/src/dictionary.cpp of open_jtalk is included in functional, but is not loaded, If you install pyopenjtalk as it is, cl.exe throws an error with exit code2 and cannot install. Also, please contact community.

This is a problem that needs to be fixed as soon as possible, as it is expected to spread through updates.

Also, I searched for #include <functional> and found that it is only included in src\mecab\src\learner_tagger.cpp, not in the header as expected. And since I was able to build even after removing all #include <functional> in Linux environment (Ubuntu Focal gcc9.4.0), it may be my lack of knowledge, but I think that previous MSVC, gcc, etc. implicitly read functional for some reason and were able to build. and it was able to build.

I can send this modified PR immediately.

Reproduction Procedure

  1. update to MSVC 14.37 (note that it cannot be downgraded) 2.
  2. reinstall pyopenjtalk.

Translated with www.DeepL.com/Translator (free version)

MSVC compiler doesn't support C++11,which cause ERROR: Failed building wheel for pyopenjtalk

I meet problem when building wheels for pyopenjtalk, followings are some errors during the building of openjtalk:

here is the branch of openjtalk I use https://github.com/r9y9/open_jtalk/tree/ce06fc565eecbf57a698dacde935f2060a60d627

...
lib\open_jtalk\src\mecab/src\dictionary.cpp(68): error C2143: 语法错误: 缺少“,”(在“<”的前面)
lib\open_jtalk\src\mecab/src\dictionary.cpp(68): error C2504: “binary_function”: 未定义基类
...

It seems the problem of C++ standard of the compiler, because binary_function has been removed in C++ 14. So I attempt to modify the compiler standard, then an amusing thing took place:

image

2022 MSVC doesn't support C++11! The tool chain of MSVC was downloaded just yesterday. So I wonder how to tell the setup.py to use gcc.exe instead of cl.exe. Thx :D bro.

awsのsagemakerにて、pyopenjtalkがインストールできません

初めまして。masahiroviewと申します。
pyopenjtalkを用いて、テキストの日本語合成システムを構築しております。
インストール時にエラーが発生したため、ご質問させていただいた次第です。

●環境概要:aws、sagemakerのJupyterノートブックにて構築。

●インストールコマンド、エラーメッセージ
!pip install pyopenjtalk

エラーメッセージーーーーーーーーーーーーーーーーーー
Looking in indexes: https://pypi.org/simple, https://pip.repos.neuron.amazonaws.com/
Collecting ttslearn
Using cached ttslearn-0.2.2.tar.gz (295 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting hydra-core>=1.1.0
Using cached hydra_core-1.2.0-py3-none-any.whl (151 kB)
Requirement already satisfied: tqdm in /home/ec2-user/anaconda3/envs/python3/lib/python3.8/site-packages (from ttslearn) (4.62.3)
Collecting pyopenjtalk>=0.1.0
Using cached pyopenjtalk-0.2.0.tar.gz (1.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "/usr/local/bin/cmake", line 5, in
from cmake import cmake
ModuleNotFoundError: No module named 'cmake'
Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/python3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/home/ec2-user/anaconda3/envs/python3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/ec2-user/anaconda3/envs/python3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-slvgpo17/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
return self._get_build_requires(
File "/tmp/pip-build-env-slvgpo17/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-slvgpo17/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-slvgpo17/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 154, in
File "/home/ec2-user/anaconda3/envs/python3/lib/python3.8/subprocess.py", line 448, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: You are using pip version 22.0.4; however, version 22.2.1 is available.
You should consider upgrading via the '/home/ec2-user/anaconda3/envs/python3/bin/python -m pip install --upgrade pip' command.
ーーーーーーーーーーーーーーーーーーーーーーーーーーーー

エラーメッセージを参考に、cmakeのアップデートを試したのですが、改善しませんでした。

●以下、関連のありそうな情報を記載します。

コマンド
!python --version
!gcc -v
!cmake --version

以下、ログ出力ーーーーーーーーーーーーーーーーーー
Python 3.8.12
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-libsanitizer --enable-gnu-indirect-function --enable-libcilkrts --enable-libatomic --enable-libquadmath --enable-libitm --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC)
cmake version 3.22.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
ーーーーーーーーーーーーーーーーーーーーーーーーー

解決方法をご存知でしたら、伺えますと幸いです。
github上での質問をするのが、今回初めてですので、至らぬ点もあるかもしれません。
お忙しいところ恐縮ですが、ご回答いただけますと幸いです。

subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.

setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
_CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver)
CMake Warning:
Ignoring extra path from command line:

".."

CMake Error: The source directory "G:/Project/VITS/pyopenjtalk-master/pyopenjtalk-master/lib/open_jtalk/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Traceback (most recent call last):
File "setup.py", line 154, in
r.check_returncode()
File "C:\Users\Admin\anaconda3\envs\VITS\lib\subprocess.py", line 448, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.

cmake version 3.26.4-msvc4
Cython version 3.0.0

cmakeがインストールしたのに "ModuleNotFoundError: No module named 'cmake'"

(tc2) PS C:\Users\Hamakaze> pip install pyopenjtalk
WARNING: Ignoring invalid distribution -rotobuf (c:\users\hamakaze\anaconda3\envs\tc2\lib\site-packages)
WARNING: Ignoring invalid distribution -rotobuf (c:\users\hamakaze\anaconda3\envs\tc2\lib\site-packages)
Collecting pyopenjtalk
  Using cached pyopenjtalk-0.2.0.tar.gz (1.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\lib\runpy.py", line 193, in _run_module_as_main
          "__main__", mod_spec)
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\lib\runpy.py", line 85, in _run_code
          exec(code, run_globals)
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\Scripts\cmake.exe\__main__.py", line 4, in <module>
      ModuleNotFoundError: No module named 'cmake'
      Traceback (most recent call last):
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
          main()
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\Hamakaze\AppData\Local\Temp\pip-build-env-udh288qw\overlay\Lib\site-packages\setuptools\build_meta.py", line 163, in get_requires_for_build_wheel
          config_settings, requirements=['wheel'])
        File "C:\Users\Hamakaze\AppData\Local\Temp\pip-build-env-udh288qw\overlay\Lib\site-packages\setuptools\build_meta.py", line 143, in _get_build_requires
          self.run_setup()
        File "C:\Users\Hamakaze\AppData\Local\Temp\pip-build-env-udh288qw\overlay\Lib\site-packages\setuptools\build_meta.py", line 268, in run_setup
          self).run_setup(setup_script=setup_script)
        File "C:\Users\Hamakaze\AppData\Local\Temp\pip-build-env-udh288qw\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 154, in <module>
        File "C:\Users\Hamakaze\anaconda3\envs\tc2\lib\subprocess.py", line 444, in check_returncode
          self.stderr)
      subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
>>> cmake.__version__
'3.22.5'

/issues/31 のようにAdministratorとしてinstallしても同じです

Fail to pip install in M1 platform

use python 3.10, and error is like:

(py30) zhonghaoli@MacBook-Pro-14-inch-2021 ChatWaifu % pip install openjtalk
Defaulting to user installation because normal site-packages is not writeable
Collecting openjtalk
Using cached openjtalk-0.3.0.dev3.tar.gz (24.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/15/15/fb29ebea31d9b0fbe72b8547c9221dda17df8e23e3b4f2eb326eec07966a/openjtalk-0.3.0.dev3.tar.gz (from https://pypi.org/simple/openjtalk/): Requested openjtalk from https://files.pythonhosted.org/packages/15/15/fb29ebea31d9b0fbe72b8547c9221dda17df8e23e3b4f2eb326eec07966a/openjtalk-0.3.0.dev3.tar.gz has inconsistent version: expected '0.3.0.dev3', but metadata has '0.3.0'
Using cached openjtalk-0.3.0.dev2.tar.gz (24.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "/Users/zhonghaoli/miniforge3/envs/py30/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/zhonghaoli/miniforge3/envs/py30/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/zhonghaoli/miniforge3/envs/py30/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/2w/pbk90zld77qff4njdw577l780000gn/T/pip-build-env-009lhacz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
return self._get_build_requires(
File "/private/var/folders/2w/pbk90zld77qff4njdw577l780000gn/T/pip-build-env-009lhacz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
self.run_setup()
File "/private/var/folders/2w/pbk90zld77qff4njdw577l780000gn/T/pip-build-env-009lhacz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/private/var/folders/2w/pbk90zld77qff4njdw577l780000gn/T/pip-build-env-009lhacz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 17, in
import six
ModuleNotFoundError: No module named 'six'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Can't use mingw32-make.exe to compile

Dear author, sorry to interrupt.
I'm using MinGW's make instead of Microsoft's nmake, so I ran set CMAKE_MAKE_PROGRAM=C:\path\to\mingw\mingw32-make.exe command before the installation.
However, I still encountered the error below:

Collecting pyopenjtalk
  Downloading pyopenjtalk-0.3.2.tar.gz (1.4 MB)
     ---------------------------------------- 1.4/1.4 MB 287.5 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        _CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver)
      -- Building for: NMake Makefiles
      CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.


      CMake Error at CMakeLists.txt:17 (project):
        Running

         'nmake' '-?'

        failed with:

         绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆\x82


      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
      CMake is in the system path. Version:               cmake version 3.27.2

      CMake suite maintained and supported by Kitware (kitware.com/cmake).
      Traceback (most recent call last):
        File "D:\Projekt\AI\Conda\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\Projekt\AI\Conda\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "D:\Projekt\AI\Conda\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\Spr_Aachen\AppData\Local\Temp\pip-build-env-q1dezv3h\overlay\Lib\site-packages\setuptools\build_meta.py", line 162, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "C:\Users\Spr_Aachen\AppData\Local\Temp\pip-build-env-q1dezv3h\overlay\Lib\site-packages\setuptools\build_meta.py", line 143, in _get_build_requires
          self.run_setup()
        File "C:\Users\Spr_Aachen\AppData\Local\Temp\pip-build-env-q1dezv3h\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 191, in <module>
        File "D:\Projekt\AI\Conda\lib\subprocess.py", line 460, in check_returncode
          raise CalledProcessError(self.returncode, self.args, self.stdout,
      subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Any ideas?

pyopenjtalk上での形態素解析について

mule-engineer13と申します。
お忙しいところ、失礼いたします。

pyopenjtalk上での、文章の形態素解析について、質問させていただきます。

●やりたいこと
漢字を含む日本語の文章を漢字・かなのまま、語に分解する

●試したこと
colab上で以下を実行

①音素を取得

import pyopenjtalk

text ="厚生労働省によりますと欧米などを中心に"
print(pyopenjtalk.g2p(text,kana=False,join=False))

・結果
['k', 'o', 'o', 's', 'e', 'e', 'r', 'o', 'o', 'd', 'o', 'o', 'sh', 'o', 'o', 'n', 'i', 'y', 'o', 'r', 'i', 'm', 'a', 's', 'U', 't', 'o', 'o', 'o', 'b', 'e', 'e', 'n', 'a', 'd', 'o', 'o', 'ch', 'u', 'u', 'sh', 'i', 'N', 'n', 'i']

②「語」単位で文章を分割(カナ)

import pyopenjtalk

text ="厚生労働省によりますと欧米などを中心に"
print(pyopenjtalk.g2p(text,kana=True,join=False))

・結果
['コーセーロードーショー', 'ニ', 'ヨリ', 'マス', 'ト', 'オーベー', 'ナド', 'ヲ', 'チューシン', 'ニ']

●質問
②のような形で、漢字とかなのまま、文章を分割した結果を得ることは可能でしょうか。
・取得したいデータの形式の例:['厚生労働省', 'に', 'より', 'ます', 'と', '欧米', 'など', 'を', '中心', 'に']

お手隙の際にご回答いただけますと幸いです。
何卒よろしくお願いいたします。

PIP install build error

I keep getting this error while trying to install to WSL. I have numpy and other requirements.

` note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.`

pip install failed

I tried to install pyopenjtalk from pypi, but got following error:

% OPEN_JTALK_INSTALL_PREFIX=(...) pip install pyopenjtalk
(...)
    ValueError: 'pyopenjtalk/openjtalk.pyx' doesn't match any files
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

However I tried python setup.py develop sdist and I found pyopenjtalk/openjtalk.pyx in the generated tgz, so I couldn't understand why it wasn't uploaded.
Perhaps didn't you upload the latest version to pypi server?

Failed to build pyopenjtalk on Python 3.9.13

After running pip install --no-cache-dir --no-build-isolation pyopenjtalk==0.3.0 I got this error.

Cython.Compiler.Errors.CompileError: pyopenjtalk\openjtalk.pyx

Here's the full error output:
err.txt

Operating system: Windows 22H2(19045.3208)
Cython version: 3.0.0
Python version: 3.9.13

Really need some help here because I've been suffering from this for 10 hours...

Fail to import pyopenjtalk on M1 platform

I was trying to import pyopenjtalk but I got this error.

File ~/anaconda3/lib/python3.10/site-packages/pyopenjtalk/__init__.py:20
     17 except ImportError:
     18     raise ImportError("BUG: version.py doesn't exist. Please file a bug report.")
---> 20 from .htsengine import HTSEngine
     21 from .openjtalk import OpenJTalk
     22 from .utils import merge_njd_marine_features

ImportError: dlopen(/Users/hurui05/anaconda3/lib/python3.10/site-packages/pyopenjtalk/htsengine.cpython-310-darwin.so, 0x0002): tried: '/Users/hurui05/anaconda3/lib/python3.10/site-packages/pyopenjtalk/htsengine.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/hurui05/anaconda3/lib/python3.10/site-packages/pyopenjtalk/htsengine.cpython-310-darwin.so' (no such file), '/Users/hurui05/anaconda3/lib/python3.10/site-packages/pyopenjtalk/htsengine.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Any advice would be appreciated!

cmakeが入ってるのにinstallができません

kuroneko@kuroneko:~/TTS$ pip install pyopenjtalk
Defaulting to user installation because normal site-packages is not writeable
Collecting pyopenjtalk
  Using cached pyopenjtalk-0.2.0.tar.gz (1.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "/home/kuroneko/.local/bin/cmake", line 5, in <module>
          from cmake import cmake
      ModuleNotFoundError: No module named 'cmake'
      Traceback (most recent call last):
        File "/home/kuroneko/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/home/kuroneko/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/kuroneko/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-_qjw_fiw/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/tmp/pip-build-env-_qjw_fiw/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-_qjw_fiw/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/tmp/pip-build-env-_qjw_fiw/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 154, in <module>
        File "/usr/lib/python3.8/subprocess.py", line 448, in check_returncode
          raise CalledProcessError(self.returncode, self.args, self.stdout,
      subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
kuroneko@kuroneko:~/TTS$ cmake --version 
cmake version 3.22.5

CMake suite maintained and supported by Kitware (kitware.com/cmake).

pip install cmake 済み

pyopenjtalk cannot be installed in google colab

Recently, it seems that pyopenjtalk cannot be installed in google colab.

!pip install -vvv pyopenjtalk==0.1.5

Using pip 21.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-u03ax74j
Created temporary directory: /tmp/pip-req-tracker-h07x85zq
Initialized build tracking at /tmp/pip-req-tracker-h07x85zq
Created build tracker: /tmp/pip-req-tracker-h07x85zq
Entered build tracker: /tmp/pip-req-tracker-h07x85zq
Created temporary directory: /tmp/pip-install-xzagbojv
1 location(s) to search for versions of pyopenjtalk:
* https://pypi.org/simple/pyopenjtalk/
Fetching project page and analyzing links: https://pypi.org/simple/pyopenjtalk/
Getting page https://pypi.org/simple/pyopenjtalk/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/pyopenjtalk/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/pyopenjtalk/ HTTP/1.1" 304 0
  Found link https://files.pythonhosted.org/packages/a9/54/5e321e9dd690847b37e3e7abba67b263b37462ab08ed6849eebdf409492a/pyopenjtalk-0.0.1.tar.gz#sha256=e90125fe9b418c95efb229f7680900b34834cf522e2630fcf96be99c4cf93fcc (from https://pypi.org/simple/pyopenjtalk/), version: 0.0.1
  Found link https://files.pythonhosted.org/packages/2b/ca/b34640163fa2962222f3cf8fc1e3d2e3e287323253b49117e54ea3ab7789/pyopenjtalk-0.0.2.tar.gz#sha256=bc8795dbcb3d607a6d406574461755286dc40377ed474fed4b43c785bef6165c (from https://pypi.org/simple/pyopenjtalk/), version: 0.0.2
  Found link https://files.pythonhosted.org/packages/53/d7/b026f0d84b0f0c4c07e0f052adf8a1396b8998806b48c34b49bd44d9f46e/pyopenjtalk-0.0.3.tar.gz#sha256=aae915c29311c07df291119818b72a693da8adbc2a0f1c1d2e6b84d6f80669c2 (from https://pypi.org/simple/pyopenjtalk/), version: 0.0.3
  Found link https://files.pythonhosted.org/packages/6a/77/5567ee3621ee0dc4573a44a3dfe2da56f3efea3e6d86907368369aa9fd79/pyopenjtalk-0.1.0.tar.gz#sha256=f7a07be4e9ffafdbe46086a365edd54007b3358e33f6d843f37136319b55b433 (from https://pypi.org/simple/pyopenjtalk/), version: 0.1.0
  Found link https://files.pythonhosted.org/packages/8c/a6/abf6d0e4b698dd9ec827af5bc70f1e133f7bdc12d258dae82360bd8003bb/pyopenjtalk-0.1.1.tar.gz#sha256=18c859e146da21cba44ad7c2d3526ed02d9a50e8e5d85c8e37de74f59f22e95e (from https://pypi.org/simple/pyopenjtalk/), version: 0.1.1
  Found link https://files.pythonhosted.org/packages/34/38/2ca282ca63da6d5d8fb45e7fe18bb772cfcd310b4c7329b5a855c982b5b2/pyopenjtalk-0.1.2.tar.gz#sha256=0ed853b7e778a1ca7f241de0547b2bf73e5a9804925239da9076da9613b3aebd (from https://pypi.org/simple/pyopenjtalk/), version: 0.1.2
  Found link https://files.pythonhosted.org/packages/f3/2a/58297ac067c9f5688081569cf9c3ee8e9514b6beba2f4224d60ca40bb6d2/pyopenjtalk-0.1.3.tar.gz#sha256=6072ef8de7ae13013d3a72bf4a18783cb24aa74a241ee4c155d2e16b0bd1b9ad (from https://pypi.org/simple/pyopenjtalk/), version: 0.1.3
  Found link https://files.pythonhosted.org/packages/ef/73/59ffe743d2b36ddc50907e643e3cca3ae3f141d5cf977a5cb4339a79a259/pyopenjtalk-0.1.4.tar.gz#sha256=deee7877f71f6f611d9aa3c287b1db24cbca27db37c48f2dee901dafce514724 (from https://pypi.org/simple/pyopenjtalk/), version: 0.1.4
  Found link https://files.pythonhosted.org/packages/0c/b7/b39a0eacdb267fbb2a77c6d155dc76c414f20455295c9a2026a05ff3c8ec/pyopenjtalk-0.1.5.tar.gz#sha256=3e1e3788a0bb060167d8e470adc0f254c9782df9e28c95497ed9f8e8fe8b38a3 (from https://pypi.org/simple/pyopenjtalk/), version: 0.1.5
Skipping link: not a file: https://pypi.org/simple/pyopenjtalk/
Given no hashes to check 1 links for project 'pyopenjtalk': discarding no candidates
Collecting pyopenjtalk==0.1.5
  Created temporary directory: /tmp/pip-unpack-0yexhuyt
  Looking up "https://files.pythonhosted.org/packages/0c/b7/b39a0eacdb267fbb2a77c6d155dc76c414f20455295c9a2026a05ff3c8ec/pyopenjtalk-0.1.5.tar.gz" in the cache
  Current age based on date: 1135
  Ignoring unknown cache-control directive: immutable
  Freshness lifetime from max-age: 365000000
  The response is "fresh", returning cached response
  365000000 > 1135
  Using cached pyopenjtalk-0.1.5.tar.gz (1.5 MB)
  Added pyopenjtalk==0.1.5 from https://files.pythonhosted.org/packages/0c/b7/b39a0eacdb267fbb2a77c6d155dc76c414f20455295c9a2026a05ff3c8ec/pyopenjtalk-0.1.5.tar.gz#sha256=3e1e3788a0bb060167d8e470adc0f254c9782df9e28c95497ed9f8e8fe8b38a3 to build tracker '/tmp/pip-req-tracker-h07x85zq'
  Created temporary directory: /tmp/pip-build-env-cdfmoobc
  Created temporary directory: /tmp/pip-standalone-pip-yr0cw4g6
  Running command /usr/bin/python3 /tmp/pip-standalone-pip-yr0cw4g6/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-cdfmoobc/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools 'cython>=0.21.0' 'numpy<v1.20.0'
  Using pip 21.3.1 from /tmp/pip-standalone-pip-yr0cw4g6/__env_pip__.zip/pip (python 3.7)
  Collecting wheel
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting setuptools
    Using cached setuptools-60.5.0-py3-none-any.whl (958 kB)
  Collecting cython>=0.21.0
    Using cached Cython-0.29.26-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
    Link requires a different Python (3.7.12 not in: '>=3.8'): https://files.pythonhosted.org/packages/7a/7f/5384d4c85a2349bd89ff1c0253bff77c7b617e48af201f2d823fc619189a/numpy-1.22.0rc1.zip#sha256=bc991b3f8ea7c0f6703df2bc23c098cfe6f1a3a5e8a3a901eb6a5619275d53ff (from https://pypi.org/simple/numpy/) (requires-python:>=3.8)
    Link requires a different Python (3.7.12 not in: '>=3.8'): https://files.pythonhosted.org/packages/a1/4a/8fd68d9a0a9fe5419cdbb697ffc96259fb716bd952c5c64225991add7551/numpy-1.22.0rc2.zip#sha256=01810dc32c5ac4c895b5c0d285497e1eb52038834919f3d2eaddfb9526b20dc9 (from https://pypi.org/simple/numpy/) (requires-python:>=3.8)
    Link requires a different Python (3.7.12 not in: '>=3.8'): https://files.pythonhosted.org/packages/17/d4/d3ac79fca81154e8d3e11232967024f480cfdc87dfeef479803716fb20cb/numpy-1.22.0rc3.zip#sha256=0b5642efe2a36f2191102b44bb95ee1479f14c1adb2d7155303e50b2517e43bc (from https://pypi.org/simple/numpy/) (requires-python:>=3.8)
    Link requires a different Python (3.7.12 not in: '>=3.8'): https://files.pythonhosted.org/packages/50/e1/9b0c184f04b8cf5f3c941ffa56fbcbe936888bdac9aa7ba6bae405ac752b/numpy-1.22.0.zip#sha256=a955e4128ac36797aaffd49ab44ec74a71c11d6938df83b1285492d277db5397 (from https://pypi.org/simple/numpy/) (requires-python:>=3.8)
    Link requires a different Python (3.7.12 not in: '>=3.8'): https://files.pythonhosted.org/packages/0a/c8/a62767a6b374a0dfb02d2a0456e5f56a372cdd1689dbc6ffb6bf1ddedbc0/numpy-1.22.1.zip#sha256=e348ccf5bc5235fc405ab19d53bec215bb373300e5523c7b476cc0da8a5e9973 (from https://pypi.org/simple/numpy/) (requires-python:>=3.8)
  Collecting numpy<v1.20.0
    Using cached numpy-1.19.5-cp37-cp37m-manylinux2010_x86_64.whl (14.8 MB)
  Installing collected packages: wheel, setuptools, numpy, cython
    Creating /tmp/pip-build-env-cdfmoobc/overlay/bin
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/wheel to 755
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/f2py to 755
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/f2py3 to 755
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/f2py3.7 to 755
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/cygdb to 755
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/cython to 755
    changing mode of /tmp/pip-build-env-cdfmoobc/overlay/bin/cythonize to 755
  ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
  datascience 0.10.6 requires folium==0.2.1, but you have folium 0.8.3 which is incompatible.
  albumentations 0.1.12 requires imgaug<0.2.7,>=0.2.5, but you have imgaug 0.2.9 which is incompatible.
  Successfully installed cython-0.29.26 numpy-1.19.5 setuptools-60.5.0 wheel-0.37.1
  WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  Installing build dependencies ... done
  Running command /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqdjkah8t
  AttributeError: DistutilsMetaFinder instance has no attribute 'find_module'
  Traceback (most recent call last):
    File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 155, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 135, in _get_build_requires
      self.run_setup()
    File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 259, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 154, in <module>
    File "/usr/lib/python3.7/subprocess.py", line 444, in check_returncode
      self.stderr)
  subprocess.CalledProcessError: Command '['cmake', '..', '-DHTS_ENGINE_INCLUDE_DIR=.', '-DHTS_ENGINE_LIB=dummy']' returned non-zero exit status 1.
  Getting requirements to build wheel ... error
WARNING: Discarding https://files.pythonhosted.org/packages/0c/b7/b39a0eacdb267fbb2a77c6d155dc76c414f20455295c9a2026a05ff3c8ec/pyopenjtalk-0.1.5.tar.gz#sha256=3e1e3788a0bb060167d8e470adc0f254c9782df9e28c95497ed9f8e8fe8b38a3 (from https://pypi.org/simple/pyopenjtalk/). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqdjkah8t Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyopenjtalk==0.1.5 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5)
ERROR: No matching distribution found for pyopenjtalk==0.1.5
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 349, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 174, in _add_to_criteria
    raise RequirementsConflicted(criterion)
pip._vendor.resolvelib.resolvers.RequirementsConflicted: Requirements conflict: SpecifierRequirement('pyopenjtalk==0.1.5')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 93, in resolve
    collected.requirements, max_rounds=try_to_avoid_resolution_too_deep
  File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 482, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 351, in resolve
    raise ResolutionImpossible(e.criterion.information)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('pyopenjtalk==0.1.5'), parent=None)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/install.py", line 339, in run
    reqs, check_supported_wheels=not options.target_dir
  File "/usr/local/lib/python3.7/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve
    raise error from e
pip._internal.exceptions.DistributionNotFound: No matching distribution found for pyopenjtalk==0.1.5
Removed pyopenjtalk==0.1.5 from https://files.pythonhosted.org/packages/0c/b7/b39a0eacdb267fbb2a77c6d155dc76c414f20455295c9a2026a05ff3c8ec/pyopenjtalk-0.1.5.tar.gz#sha256=3e1e3788a0bb060167d8e470adc0f254c9782df9e28c95497ed9f8e8fe8b38a3 from build tracker '/tmp/pip-req-tracker-h07x85zq'
Removed build tracker: '/tmp/pip-req-tracker-h07x85zq'

Related version info

!python --version
!gcc -v
!cmake --version

Python 3.7.12
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 
cmake version 3.12.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Reproducible notebook gist: https://gist.github.com/kan-bayashi/8d1a7973cbe0ad15375c995e50c8e8b2

Related: espnet/espnet#4001

Install build error

I keep getting this error while trying to install.
When I use pip to install, an error message appears:FileNotFoundError: [WinError 2]
It prompts me that the system cannot find the specified file
The error message comes from subprocess.py, line1420

macos install failed.

yopenjtalk_ecf56914d5064c4b8528200fb4984bda/lib/open_jtalk/src/mecab/src/char_property.h:40:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register const char *p = begin;
^~~~~~~~~
1 warning and 1 error generated.

Numpy raised ValueError when importing pyopenjtalk

Hi,

I always encounted the following error when I tried import pyopenjtalk:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/pyopenjtalk/pyopenjtalk/__init__.py", line 20, in <module>
    from .htsengine import HTSEngine
  File "pyopenjtalk/htsengine.pyx", line 1, in init pyopenjtalk.htsengine
    # coding: utf-8
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I suppose this is because the version of numpy is not compatible, so I tried a lot of versions including 1.22.x, 1.21.x, and 1.20.x, but I always failed.
Do you have any idea on this?

Below are my env information:

python=3.8.13
numpy=1.22.3

I installed pyopenjtalk via pip.

ERROR: Could not build wheels for pyopenjtalk, which is required to install pyproject.toml-based projects

Hi, I'm on windows 10 with Python 3.8, gcc, msvc, and cython all installed and in path and I have looked at literally every issue on this repo but I still cant solve it. When I run python3.8 -m pip install pyopenjtalk --no-build-isolation --no-cache-dir, this is my output:

  Downloading pyopenjtalk-0.3.2.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 12.7 MB/s eta 0:00:00
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.20.0 in c:\users\danu0\appdata\local\programs\python\python38\lib\site-packages (from pyopenjtalk) (1.24.2)
Requirement already satisfied: six in c:\users\danu0\appdata\local\programs\python\python38\lib\site-packages (from pyopenjtalk) (1.16.0)
Requirement already satisfied: tqdm in c:\users\danu0\appdata\local\programs\python\python38\lib\site-packages (from pyopenjtalk) (4.65.0)
Requirement already satisfied: colorama in c:\users\danu0\appdata\local\programs\python\python38\lib\site-packages (from tqdm->pyopenjtalk) (0.4.6)
Building wheels for collected packages: pyopenjtalk
  Building wheel for pyopenjtalk (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyopenjtalk (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [153 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      CMake is in the system path. Version:               cmake version 3.27.1

      CMake suite maintained and supported by Kitware (kitware.com/cmake).
      running bdist_wheel
      running build
      running build_py
      -- Building version 0.3.2
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\pyopenjtalk
      copying pyopenjtalk\utils.py -> build\lib.win-amd64-cpython-38\pyopenjtalk
      copying pyopenjtalk\version.py -> build\lib.win-amd64-cpython-38\pyopenjtalk
      copying pyopenjtalk\__init__.py -> build\lib.win-amd64-cpython-38\pyopenjtalk
      creating build\lib.win-amd64-cpython-38\pyopenjtalk\htsvoice
      copying pyopenjtalk\htsvoice\LICENSE_mei_normal.htsvoice -> build\lib.win-amd64-cpython-38\pyopenjtalk\htsvoice
      copying pyopenjtalk\htsvoice\mei_normal.htsvoice -> build\lib.win-amd64-cpython-38\pyopenjtalk\htsvoice
      copying pyopenjtalk\htsvoice\README.md -> build\lib.win-amd64-cpython-38\pyopenjtalk\htsvoice
      running build_ext
      cythoning pyopenjtalk\openjtalk.pyx to pyopenjtalk\openjtalk.cpp
      cythoning pyopenjtalk\htsengine.pyx to pyopenjtalk\htsengine.cpp
      building 'pyopenjtalk.openjtalk' extension
      creating build\temp.win-amd64-cpython-38
      creating build\temp.win-amd64-cpython-38\Release
      creating build\temp.win-amd64-cpython-38\Release\lib
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\jpcommon
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab\src
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab2njd
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd2jpcommon
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd_set_accent_phrase
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd_set_accent_type
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd_set_digit
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd_set_long_vowel
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd_set_pronunciation
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\njd_set_unvoiced_vowel
      creating build\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\text2mecab
      creating build\temp.win-amd64-cpython-38\Release\pyopenjtalk
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tclib\open_jtalk\src\jpcommon\jpcommon.c /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\jpcommon\jpcommon.obj /source-charset:utf-8 /execution-charset:utf-8
      jpcommon.c
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tclib\open_jtalk\src\jpcommon\jpcommon_label.c /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\jpcommon\jpcommon_label.obj /source-charset:utf-8 /execution-charset:utf-8
      jpcommon_label.c
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(115): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(128): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(148): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(168): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(181): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(194): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(207): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(231): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(459): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(462): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(701): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(715): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(721): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(735): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(750): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(757): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(776): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(791): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(798): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(811): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(834): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(847): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(853): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(688): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(692): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(698): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(712): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(714): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(718): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(720): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(732): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(734): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(744): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(746): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(752): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(754): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(764): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(768): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(785): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(787): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(793): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(795): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(807): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(809): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(818): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(823): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(843): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(845): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_label.c(849): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tclib\open_jtalk\src\jpcommon\jpcommon_node.c /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\jpcommon\jpcommon_node.obj /source-charset:utf-8 /execution-charset:utf-8
      jpcommon_node.c
      lib\open_jtalk\src\jpcommon\jpcommon_node.c(76): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_node.c(83): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_node.c(90): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      lib\open_jtalk\src\jpcommon\jpcommon_node.c(97): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tplib\open_jtalk\src\mecab/src\char_property.cpp /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab/src\char_property.obj /source-charset:utf-8 /execution-charset:utf-8
      char_property.cpp
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\utils.h(47): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\scoped_ptr.h(84): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\scoped_ptr.h(90): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      lib\open_jtalk\src\mecab/src\char_property.cpp(269): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tplib\open_jtalk\src\mecab/src\connector.cpp /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab/src\connector.obj /source-charset:utf-8 /execution-charset:utf-8
      connector.cpp
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\utils.h(47): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\scoped_ptr.h(84): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\scoped_ptr.h(90): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\connector.h(36): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\connector.h(37): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tplib\open_jtalk\src\mecab/src\context_id.cpp /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab/src\context_id.obj /source-charset:utf-8 /execution-charset:utf-8
      context_id.cpp
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\utils.h(47): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"dummy\" -DPACKAGE=\"open_jtalk\" -DVERSION=\"1.10\" -DCHARSET_UTF_8 -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab/src -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab2njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd2jpcommon -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_phrase -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_accent_type -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_digit -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_long_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_pronunciation -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\njd_set_unvoiced_vowel -IC:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\text2mecab -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\include -IC:\Users\danu0\AppData\Local\Programs\Python\Python38\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tplib\open_jtalk\src\mecab/src\dictionary.cpp /Fobuild\temp.win-amd64-cpython-38\Release\lib\open_jtalk\src\mecab/src\dictionary.obj /source-charset:utf-8 /execution-charset:utf-8
      dictionary.cpp
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\utils.h(47): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\scoped_ptr.h(84): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\scoped_ptr.h(90): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\connector.h(36): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data
      C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\lib\open_jtalk\src\mecab\src\connector.h(37): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(68): error C2143: syntax error: missing ',' before '<'
      lib\open_jtalk\src\mecab/src\dictionary.cpp(73): note: see reference to class template instantiation 'MeCab::`anonymous-namespace'::pair_1st_cmp<T1,T2>' being compiled
      lib\open_jtalk\src\mecab/src\dictionary.cpp(418): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(419): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(444): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(68): error C2039: 'binary_function': is not a member of 'std'
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\map(25): note: see declaration of 'std'
      lib\open_jtalk\src\mecab/src\dictionary.cpp(466): note: see reference to class template instantiation 'MeCab::`anonymous-namespace'::pair_1st_cmp<std::string,MeCab::Token *>' being compiled
      lib\open_jtalk\src\mecab/src\dictionary.cpp(68): error C2504: 'binary_function': base class undefined
      lib\open_jtalk\src\mecab/src\dictionary.cpp(479): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data
              with
              [
                  _Ty=int
              ]
      lib\open_jtalk\src\mecab/src\dictionary.cpp(489): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data
              with
              [
                  _Ty=int
              ]
      lib\open_jtalk\src\mecab/src\dictionary.cpp(515): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(516): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(517): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(518): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(519): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
      lib\open_jtalk\src\mecab/src\dictionary.cpp(524): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      <string>:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      C:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\pyopenjtalk\openjtalk\__init__.pxd
        tree = Parsing.p_module(s, pxd, full_module_name)
      C:\Users\danu0\AppData\Local\Programs\Python\Python38\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\danu0\AppData\Local\Temp\pip-install-6ilib7tr\pyopenjtalk_d4d96dbd77814c92a6685395df95f388\pyopenjtalk\htsengine\__init__.pxd
        tree = Parsing.p_module(s, pxd, full_module_name)
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyopenjtalk
Failed to build pyopenjtalk
ERROR: Could not build wheels for pyopenjtalk, which is required to install pyproject.toml-based projects```

How can I get phoneme durations?

Hi, r9y9. Thank you for your greatest work!

I am getting phoneme durations by OpenJTalk below shell command.

echo $sentence | open_jtalk -x $jtalk_path/mecab-naist-jdic \
-m $jtalk_path/MMDAgent_Example-1.7/Voice/mei/mei_normal.htsvoice \
-ow wavs/temp.wav -ot logs/$log_name

## Some processing to logs/$log_name

So I also want to get phoneme durations by your pyopenjtalk.
For example,

['0/300000/xx^xx-sil+k=o/A:xx+xx+xx/B:xx-xx_xx/C:xx_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:xx_xx#xx_xx@xx_xx|xx_xx/G:5_5%0_xx_xx/H:xx_xx/I:xx-xx@xx+xx&xx-xx|xx+xx/J:1_5/K:1+1-5',
'3000000/600000/xx^sil-k+o=N/A:-4+1+5/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
'600000/1000000/sil^k-o+N=n/A:-4+1+5/B:xx-xx_xx/C:09_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:5_5#0_xx@1_1|1_5/G:xx_xx%xx_xx_xx/H:xx_xx/I:1-5@1+1&1-1|1+5/J:xx_xx/K:1+1-5',
...
...
]

I guess it is probably impossible to get it in its current code, so I will need to make some modifications and re-build it.

Thank you!

IPA Phonetic

With this, is it possible to convert the phoneme returned by this library to IPA phonetic symbols?

macos failed import pyopenjtalk

Traceback (most recent call last):
File "/Users/ordis/Documents/Vault/resources/AI/GPT-SoVITS/1.py", line 1, in
import pyopenjtalk
File "/Users/ordis/Documents/Vault/resources/AI/pyopenjtalk/pyopenjtalk/init.py", line 20, in
from .htsengine import HTSEngine
ImportError: dlopen(/Users/ordis/Documents/Vault/resources/AI/pyopenjtalk/pyopenjtalk/htsengine.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '__ZTINSt8ios_base7failureB5cxx11E'

Version confilcts with metadata?

(GPT-SoVITS) PS F:\AI\GPT-SoVITS\GPT-SoVITS-beta\GPT-SoVITS-beta0128> pip install pyopenjtalk -i https://pypi.python.org/simple             

Looking in indexes: https://pypi.python.org/simple
Collecting pyopenjtalk
  Using cached pyopenjtalk-0.3.3.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/94/4f/7f30eb942eab785a3da4973882f2809a830522895e44db550e1e6ecd1f64/pyopenjtalk-0.3.3.tar.gz (from https://pypi.org/simple/pyopenjtalk/): Requested pyopenjtalk from https://files.pythonhosted.org/packages/94/4f/7f30eb942eab785a3da4973882f2809a830522895e44db550e1e6ecd1f64/pyopenjtalk-0.3.3.tar.gz has inconsistent version: expected '0.3.3', but metadata has '0.3.3+2a8c7c8'

I built my blank evironment in Anaconda with python==3.9 in Win11.When I tried to pip install pyopenjtalk,above error info came out. I have no idea how to solve it.

If the path contains Japanese in windows, mecab_load will give an error.

Like this:

OPEN_JTALK_DICT_DIR='C:\Users\hihok\Downloads\日本語!\open_jtalk_dic_utf_8-1.11' \
python -c 'im port pyopenjtalk; pyopenjtalk.tts("ほげ")'
ERROR: Mecab_load() in mecab.cpp: Cannot open C:\Users\hihok\Downloads\譌・譛ャ隱橸シ―open_jtalk_dic_utf_8-1.11.

Windows用に文字エンコーディングを変更すればこのエラーを迂回できます。
#17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.