Skip to main content

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


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.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matcha_onnx-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file matcha_onnx-0.1.1.tar.gz.

File metadata

  • Download URL: matcha_onnx-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for matcha_onnx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0cfe7fff6c3ca2e58fc05088668b00f63d576263b30181b24251adaec44a4450
MD5 ddd44491ff459de0063b1bf2ac744a6d
BLAKE2b-256 e4fc7091223e2b982f1cb19d201a5da87f2974febaa7eeda37bf66ec9142b0b8

See more details on using hashes here.

File details

Details for the file matcha_onnx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: matcha_onnx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for matcha_onnx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a56cdc0d89135502d07f73076fdf7006f3d4c43b314702faec5ef8f1362f24a
MD5 3b33ab4fa369eee4d1c3d2022f45e079
BLAKE2b-256 27fd77f6242ba3f0bb8fa6c5d14731992049c88db36b39937de78d56a33b8846

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page