Views
No views yet
1pip install supertonic-mnn
2# Provide text through stdin
3echo "Hello world" | supertonic-mnn --output out.wav
4
5# Or read from a text file
6supertonic-mnn --input-file sentences.txt --voice F1 --precision int8 --output out.wav--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 models1git clone https://github.com/vra/supertonic-mnn
2cd supertonic-mnn
3uv sync1# Reading text from stdin
2echo "Hello world" | uv run supertonic-mnn --output hello.wav
3
4# Using local models with default precision (fp16)
5echo "Hello world" | uv run supertonic-mnn --output hello.wav --model-dir /path/to/models
6
7# Specify precision
8echo "Hello world" | uv run supertonic-mnn --output hello.wav --precision fp32
9
10# Download models from HuggingFace (automatic)
11echo "Hello world" | uv run supertonic-mnn --output hello.wav --precision int8
12
13# Batch processing from text file
14uv run supertonic-mnn --input-file sentences.txt --voice F1 --output result.wav