Skip to main content

CLI tool for Supertonic MNN inference

Project description

Supertonic MNN CLI

Models

A command-line interface for running Supertonic TTS models using MNN.

Features

  • MNN Inference: Fast, on-device inference using MNN, RTF ~ 0.07
  • Int8 Supports: no loss of precisions compared with fp32 and fp16

Usage

Install by pip and run:

pip install supertonic-mnn
# Provide text through stdin
echo "Hello world" | supertonic-mnn --output out.wav

# Or read from a text file
supertonic-mnn --input-file sentences.txt --voice F1 --precision int8 --output out.wav

Available Options

  • --input-file, -i: Input text file to synthesize (each line will be synthesized separately)
  • --voice: Voice style (default: M1, choices: M1, M2, F1, F2)
  • --precision: Model precision - fp32, fp16, or int8 (default: fp16)
  • --output, -o: Output audio file path (default: output.wav)
  • --speed: Speech speed multiplier (default: 1.0)
  • --steps: Number of denoising steps (default: 5)
  • --model-dir: Directory containing models

Installation By Source Code

git clone https://github.com/vra/supertonic-mnn
cd supertonic-mnn
uv sync

Usage

# Reading text from stdin
echo "Hello world" | supertonic-mnn --output hello.wav

# Using local models with default precision (fp16)
echo "Hello world" | supertonic-mnn --output hello.wav --model-dir /path/to/models

# Specify precision
echo "Hello world" | supertonic-mnn --output hello.wav --precision fp32

# Download models from HuggingFace (automatic)
echo "Hello world" | supertonic-mnn --output hello.wav --precision int8

# Batch processing from text file
uv run supertonic-mnn --input-file sentences.txt --voice F1 --output result.wav

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.1.tar.gz (86.3 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.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supertonic_mnn-0.1.1.tar.gz
  • Upload date:
  • Size: 86.3 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.1.tar.gz
Algorithm Hash digest
SHA256 f1aa2c5479047a385523756b46fa639b838cfa678a488bfd3056072c8683633d
MD5 22c3d8df46232ff7d3ffdd07f3d14d1b
BLAKE2b-256 1e38cbb9f95708ebd64158275cc336e8b1a34bd57b568d79636ee382873dd9e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: supertonic_mnn-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3138c4bbf417c37188c44419fba32bfc9cad46d778f26e9f6aba2f57937c3e73
MD5 3fc92464a4437799e79c36bfa9639405
BLAKE2b-256 9b2c3efa95314a9164df8afeb05799ac0dfc656ee2e0da0d38422000dacaab2c

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