Registry / ai-ml / pyopenjtalk

pyopenjtalk

JSON →
library0.4.1pypypi✓ verified 89d ago

A Python wrapper for OpenJTalk, a Japanese text-to-speech engine. Current version 0.4.1, requires Python >=3.8 and cmake. Release cadence is irregular; last release was 2025-03-01.

pip install pyopenjtalk
INSTALL
IMPORT
SIG · PYOPENJTALK
P
pyopenjtalk
ai-mlpythonv0.4.1
Install
—
Import
—
Disk
—
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
build_error
glibc
py 3.10–3.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run_frontend
✓ from pyopenjtalk import run_frontend
✗ from pyopenjtalk.frontend import run_frontend
run_frontend is a top-level function, not part of a submodule.
synthesize
✓ from pyopenjtalk import synthesize
✗ import pyopenjtalk.synthesize
synthesize is a function, not a module.

Basic usage: synthesize speech or extract linguistic features from Japanese text.

import pyopenjtalk # Synthesize speech from text (returns wav as numpy array) text = "こんにちは" wav, sr = pyopenjtalk.synthesize(text) # Or get linguistic features features = pyopenjtalk.run_frontend(text) print(features)
Debug
Known issues
breakingIn v0.3.0, run_frontend behavior changed due to introduction of 'marine' accent model. Output format may differ from v0.2.x.
fix
Check the full documentation for new feature structure; verify your parsing code against output.
affects: >=0.3.0
gotchaBuilding from source requires cmake. If pip fails to install, install cmake first (e.g., 'apt install cmake' or 'brew install cmake').
fix
Ensure cmake is installed and in PATH before 'pip install pyopenjtalk'.
affects: all
deprecatedLegacy API functions like 'pyopenjtalk.run_tts' are removed as of v0.3.4. Use 'pyopenjtalk.synthesize' instead.
fix
Replace 'run_tts' with 'synthesize'.
affects: >=0.3.4
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pyopenjtalk'
Package not installed or installed incorrectly.
fix
Run 'pip install pyopenjtalk'. If on Windows, may need to install Visual C++ Build Tools.
ImportError: libopenjtalk.so: cannot open shared object file
Missing system dependencies or broken installation.
fix
Reinstall: 'pip uninstall pyopenjtalk && pip install pyopenjtalk'. On Linux, ensure build essentials are installed.
ValueError: numpy.ndarray size changed, may indicate binary incompatibility
numpy version mismatch between build and runtime.
fix
Upgrade numpy: 'pip install --upgrade numpy' to at least 1.20.
Upgrade
Version history
0.4.1latest on PyPI · released Apr 8, 2025
Audit
Dependencies
cmakeoptionalRequired for building from source (C extension). Install via system package manager if pip fails.
numpyrequiredRequired for array operations; automatic install, but version must be >=1.20.
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
pyopenjtalk — pip install pyopenjtalk · libregistry