Small ONNX Runtime wrapper for Matcha-TTS
Project description
matcha-onnx
Small ONNX Runtime wrapper for Matcha-TTS.
wget -O matcha.onnx https://huggingface.co/thewh1teagle/matcha-onnx/resolve/main/matcha.onnx
uv run examples/basic.py
The example writes audio.wav.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matcha_onnx-0.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matcha_onnx-0.1.0.tar.gz.
File metadata
- Download URL: matcha_onnx-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398dd1760e5dbee821ec9bbd7413a2147ffd5e26bfd0092b6e8c5a2ad07f315a
|
|
| MD5 |
3e8fbe9ae54500f9f9d9ea8bd9586099
|
|
| BLAKE2b-256 |
21aa508554669fbcad7bb38f506a364b4761e6bfbd64c88425d22d6d5dcdf269
|
File details
Details for the file matcha_onnx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: matcha_onnx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64f0f8e409b6cdb6ada01eff32f5fb6219d1add7bb301abd06df4d9c6f109b25
|
|
| MD5 |
0ab9089799af54d878b3ae3720c3febb
|
|
| BLAKE2b-256 |
34c7c304234d877c7f3f6116706119c55fd5987342fbbcd80d6f34dbbc10063b
|