Skip to main content

CLI tool for Supertonic MNN inference

Project description

Supertonic MNN

Models Docs PyPI

English | 中文


English

Supertonic MNN is a high-performance, lightweight text-to-speech (TTS) library based on MNN. It supports both command-line interface (CLI) and Python API, making it easy to integrate into your projects.

Features

  • Fast Inference: RTF ~ 0.07 on CPU.
  • Lightweight: Minimal dependencies.
  • Supported Precisions: fp32, fp16, int8.

Available Voices

  • M1: Male voice 1
  • M2: Male voice 2
  • F1: Female voice 1
  • F2: Female voice 2

Documentation

Full documentation is available at Supertonic MNN Docs.

Installation

pip install supertonic-mnn

Quick Usage

CLI

echo "Hello world" | supertonic-mnn -o hello.wav

Python API

from supertonic_mnn import SupertonicTTS

# 1. Initialize
tts = SupertonicTTS()

# 2. Synthesize
# Models will be downloaded automatically if not present
audio, sample_rate = tts.synthesize("Hello world", voice="M1", output_file="hello.wav")

See examples/ for more details.

Acknowledgments

This project is based on the original Supertonic by Supertone Inc.


中文

Supertonic MNN 是一个基于 MNN 的高性能、轻量级文本转语音 (TTS) 库。它同时支持命令行接口 (CLI) 和 Python API,方便您将其集成到项目中。

特性

  • 极速推理: CPU 上 RTF 约为 0.07。
  • 轻量级: 依赖极少。
  • 多精度支持: fp32, fp16, int8。

可用音色

  • M1: 男声 1
  • M2: 男声 2
  • F1: 女声 1
  • F2: 女声 2

文档

完整文档请访问 Supertonic MNN 文档

安装

pip install supertonic-mnn

快速上手

命令行 (CLI)

echo "你好,世界" | supertonic-mnn -o hello.wav

Python API

from supertonic_mnn import SupertonicTTS

# 1. 初始化
tts = SupertonicTTS()

# 2. 推理
# 如果模型不存在,会自动下载
audio, sample_rate = tts.synthesize("你好,世界", voice="M1", output_file="hello.wav")

更多详情请参阅 examples/ 目录。

致谢

本项目基于 Supertone Inc. 的原始 Supertonic 工作。

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

supertonic_mnn-0.1.2.tar.gz (72.2 kB view details)

Uploaded Source

Built Distribution

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

supertonic_mnn-0.1.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file supertonic_mnn-0.1.2.tar.gz.

File metadata

  • Download URL: supertonic_mnn-0.1.2.tar.gz
  • Upload date:
  • Size: 72.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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 supertonic_mnn-0.1.2.tar.gz
Algorithm Hash digest
SHA256 11754559514f74ef708d34110a50a0ddc271d84c48c3e805dc226e8b92e279b4
MD5 9ed18f0fe9a59292d36119eac97920c1
BLAKE2b-256 7a7aef0688e7c5772ce8d0c7a9651182781445995f954a2534aab9892c50df7f

See more details on using hashes here.

File details

Details for the file supertonic_mnn-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: supertonic_mnn-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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 supertonic_mnn-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94c4f9fb0e6382d2500f30c6df425af55d53fc6b644517663c397cbe2fa49024
MD5 cd7bb82d0c0e7a31a28c27ff610ac256
BLAKE2b-256 91597d30ff36c68ed72813aeb0413135ca73b0efd709b5b5460df25caed279ee

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