Views
No views yet
| File | Role |
|---|---|
text_encoder.onnx | Text encoder; inputs include phone IDs and per-voice style (TTL) tensors |
vector_estimator.onnx | Flow / vector field with CFG and unconditional latents baked in |
vocoder.onnx | Neural codec decoder; output is waveform (stats baked in-graph) |
duration_predictor.onnx | Style-conditioned duration; takes style_dp from the voice JSON |
tts.json | Runtime config (dims, model version). Pass your ONNX directory to the library; if tts.json sits next to the .onnx files, it is picked up automatically. |
female1.json) from the BlueTTS repo / companion Hub releases, and pass their paths to load_voice_style or BlueTTS(..., style_json=...).1# Hugging Face CLI (e.g. after: pip install huggingface_hub)
2hf download notmax123/blue-onnx-v2 --repo-type model --local-dir ./onnx_slimhuggingface_hub dependency as blue-onnx):1from huggingface_hub import hf_hub_download
2hf_hub_download("notmax123/blue-onnx-v2", "text_encoder.onnx", local_dir="onnx_slim", repo_type="model")
3# …repeat for the other files, or use snapshot_downloadpip install blue-onnx1import soundfile as sf
2from blue_onnx import BlueTTS
3
4tts = BlueTTS(
5 onnx_dir="onnx_slim", # this folder after download
6 style_json="voices/female1.json", # from the main repo
7 renikud_path="model.onnx", # optional; Hebrew
8)
9
10audio, sr = tts.synthesize("Hello, world.", lang="en")
11sf.write("out.wav", audio, sr)