net10.0
Local text-to-speech synthesis using VITS/Piper models with ONNX Runtime. Run TTS locally without cloud APIs or network dependencies.
Published
Aug 11, 2026
2mo ago
Total Downloads
18.2K
18,217
Install
dotnet add package LMSupply.Synthesizer --version 0.40.0
| Product | Versions |
|---|---|
| .NET |
README
LMSupply.Synthesizer
Local text-to-speech synthesis using VITS/Piper models.
Features
- Zero-config: Models download automatically from HuggingFace
- GPU Acceleration: CUDA, DirectML (Windows), CoreML (macOS)
- MIT Licensed: Piper VITS voices
- Multiple Languages: English, Korean, Japanese, Chinese, and more
Quick Start
using LMSupply.Synthesizer;
// Load the default model
await using var synthesizer = await LocalSynthesizer.LoadAsync("default");
// Synthesize speech
var result = await synthesizer.SynthesizeAsync("Hello, welcome to LMSupply!");
Console.WriteLine($"Duration: {result.DurationSeconds:F2}s");
Console.WriteLine($"Real-time factor: {result.RealTimeFactor:F1}x");
// Save as WAV file
await synthesizer.SynthesizeToFileAsync("Hello world!", "output.wav");
Available Models
| Alias | Voice | Language | Description |
|---|---|---|---|
default |
Lessac | en-US | High-quality female |
fast |
Ryan | en-US | Fast male voice |
quality |
Amy | en-US | High-quality female |
british |
Semaine | en-GB | British female |
korean |
KSS | ko-KR | Korean female |
japanese |
JSUT | ja-JP | Japanese female |
chinese |
Huayan | zh-CN | Mandarin female |
GPU Acceleration
# NVIDIA GPU
dotnet add package Microsoft.ML.OnnxRuntime.Gpu
# Windows (AMD/Intel/NVIDIA)
dotnet add package Microsoft.ML.OnnxRuntime.DirectML
Changes from Previous Version
No structural changes between v0.39.0 and v0.40.0.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.