Downloads · 30 days
0
dev-ansh-r/Supertonic-qualcomm-quantized
Supertonic-qualcomm-quantized is a text-to-speech model from dev-ansh-r. Use it when you need text read aloud. The card lists the license as openrail.
A step-by-step guide to quantize the Supertonic TTS model for Qualcomm QCS6490 using QAIRT/QNN. Note: To achieve the optimal performance and accuracy consider generating ctx binaries or serialised binaries specific to…
Downloads · 30 days
0
Access
Public
Updated Feb 16, 2026
Repo size
70.1 MB
Likes
0
Public
Click a slice to open those files.
.so69.6 MB · 99%
From the Hugging Face model README
A step-by-step guide to quantize the Supertonic TTS model for Qualcomm QCS6490 using QAIRT/QNN. Note: To achieve the optimal performance and accuracy consider generating ctx binaries or serialised binaries specific to the architecture (v68 - mine)
Audio generated on QCS6490 board using quantized models (10 diffusion steps, raw and noisy):
<audio controls src="https://huggingface.co/dev-ansh-r/qualcomm-Supertonic-TTS-QCS6490/resolve/main/final_output.wav"></audio>
text + style
│
┌───────────┴───────────┐
│ │
duration_predictor text_encoder
│ │
duration (scalar) text_emb (1,128,256)
│ │
latent_mask (1,1,256) │
└───────────┬───────────┘
│
vector_estimator (10 diffusion steps)
│
denoised_latent
│
vocoder
│
audio (44.1kHz)
The duration_predictor outputs a single scalar representing the total speech duration. This is post-processed into a latent_mask that tells the vector_estimator how many of the 256 fixed-size latent frames are active speech vs padding.
Prepare calibration inputs for model quantization.
Input_Preparation.ipynb
Convert ONNX models to QNN format with quantization for HTP backend.
Supertonic_TTS_StepbyStep.ipynb
Verify quantized model outputs against reference using cosine similarity.
Correlation_Verification.ipynb
├── Input_Preparation.ipynb # Prepare calibration inputs
├── Supertonic_TTS_StepbyStep.ipynb # ONNX → QNN quantization guide
├── Correlation_Verification.ipynb # Output verification
├── assets/ # ONNX models (git submodule)
│ └── onnx/
│ ├── text_encoder.onnx
│ ├── duration_predictor.onnx
│ ├── vector_estimator.onnx
│ └── vocoder.onnx
├── QNN_Models/ # Quantized QNN models (.bin, .cpp)
├── QNN_Model_lib/ # QNN runtime libraries (aarch64)
├── qnn_calibration/ # Calibration data for verification
├── inputs/ # Prepared input data
└── board_output/ # Inference outputs from board
| Model | Description |
|---|---|
| text_encoder | Encodes text tokens with style embedding |
| duration_predictor | Predicts phoneme durations |
| vector_estimator | Diffusion-based latent generator (10 steps) |
| vocoder | Converts latent to audio waveform |
Located in assets/onnx/ (git submodule from Hugging Face):
text_encoder.onnxduration_predictor.onnxvector_estimator.onnxvocoder.onnxLocated in QNN_Models/:
text_encoder_htp.bin / .cppvector_estimator_htp.bin / .cppvocoder_htp.bin / .cppLocated in QNN_Model_lib/aarch64-oe-linux-gcc11.2/:
libtext_encoder_htp.solibvector_estimator_htp.solibvocoder_htp.solibduration_predictor_htp.soThese .so files are compiled from the .cpp sources and are ready to be deployed (via SCP) to the board for inference.
Note: The
duration_predictoris quantized and compiled but not used in the current calibration-based workflow sincelatent_maskis precomputed. For an end-to-end pipeline with arbitrary text input, the duration predictor must run first to dynamically generate thelatent_mask.
Clone with submodules:
git clone --recurse-submodules https://github.com/dev-ansh-r/Supertonic-TTS-QCS6490
Follow the notebooks in order:
Input_Preparation.ipynbSupertonic_TTS_StepbyStep.ipynbCorrelation_Verification.ipynbInference script and sample application are not provided. Optimization work is ongoing and will be released soon.
This model inherits the licensing from Supertone/supertonic-2:
Copyright (c) 2026 Supertone Inc. (original model)