BlueV3 β€” ONNX Runtime Bundle

ONNX export of BlueV3 TTS for CPU / CUDA / TensorRT inference. Includes the vocoder (codec decoder).

TTS version: v1.7.3 Β· Sample rate: 44.1 kHz Β· Exported from PyTorch ckpt_step_767000 + AE ae_541000

Contents

File Role
text_encoder.onnx Phoneme IDs + style β†’ text embedding
vector_estimator.onnx Flow-matching Euler step (CFG baked in)
vocoder.onnx Latent β†’ 44.1 kHz waveform (codec)
duration_predictor.onnx Text + style_dp β†’ duration (seconds)
stats.npz Latent mean / std / normalizer_scale
uncond.npz Unconditional tokens (CFG / debugging)
tts.json Runtime config

Companion repo

PyTorch weights (no codec): notmax123/BlueV3

Download

hf download notmax123/BlueV3-onnx --local-dir ./onnx_models

Inference contract

  1. Style β€” provide style_ttl [1, 50, 256] and style_dp [1, 8, 16] (from a style JSON / reference encoder).
  2. Text β€” IPA / phoneme string β†’ text_ids, text_mask.
  3. Duration β€” duration_predictor β†’ seconds; divide by speed; convert to latent length with base_chunk_size=512, chunk_compress_factor=6.
  4. Encode β€” text_encoder(text_ids, style_ttl, text_mask) β†’ text_emb.
  5. Sample β€” loop vector_estimator for N steps (e.g. 8). Output is the next latent state (CFG is inside the graph; do not apply CFG again).
  6. Decode β€” unnormalize with stats.npz:
    z = (x / normalizer_scale) * std + mean   # raw 144-d
    
    optionally drop the last compressed frame, then vocoder(latent=z) β†’ wav_tts.

vocoder.onnx expects raw (unnormalized) 144-channel latents (normalizer_scale=1 inside the export).

Example (this codebase)

# ONNX (ORT CUDA / CPU)
uv run python run_onnx_inference.py --onnx_dir ./onnx_models --speaker netsiga --steps 8

# TensorRT (after building engines from these ONNX files)
uv run python create_tensorrt.py --onnx_dir ./onnx_models --engine_dir trt_engines
uv run python benchmark_trt.py --style_json voice_styles/Rotem.json --steps 8 --out out.wav

I/O cheat sheet

text_encoder: text_ids, style_ttl, text_mask β†’ text_emb
vector_estimator: noisy_latent, text_emb, style_ttl, latent_mask, text_mask, current_step, total_step β†’ denoised_latent
duration_predictor: text_ids, style_dp, text_mask β†’ duration
vocoder: latent [B, 144, T] β†’ wav_tts

License

MIT (see frontmatter).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using notmax123/BlueV3-onnx 1