Metadata-Version: 2.3
Name: matcha-onnx
Version: 0.1.0
Summary: Small ONNX Runtime wrapper for Matcha-TTS
Author: yakov
Author-email: yakov <61390950+thewh1teagle@users.noreply.github.com>
Requires-Dist: espeakng-loader>=0.2.4
Requires-Dist: huggingface-hub>=1.17.0
Requires-Dist: numpy>=1.26.4
Requires-Dist: onnxruntime>=1.26.0
Requires-Dist: phonemizer-fork>=3.3.2
Requires-Dist: soundfile>=0.13.1
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# matcha-onnx

Small ONNX Runtime wrapper for Matcha-TTS.

```bash
wget -O matcha.onnx https://huggingface.co/thewh1teagle/matcha-onnx/resolve/main/matcha.onnx
uv run examples/basic.py
```

The example writes `audio.wav`.

```python
import soundfile as sf
from matcha_onnx import MatchaOnnx

tts = MatchaOnnx("matcha.onnx")
samples, sr = tts.create("Hello from Matcha.", speed=0.95)
sf.write("audio.wav", samples, sr)
```

Pass `is_phonemes=True` to synthesize raw IPA phonemes directly.

The wrapper reads the symbol table, sample rate, and exported step count from ONNX metadata.
