Install
dotnet add package ElBruno.Speech.Pipeline --version 1.3.0
| Product | Versions |
|---|---|
| .NET |
README
ElBruno.Speech

Local-first speech runtime for .NET β VAD β STT β LLM β TTS ποΈ
A reusable, local-first speech runtime for .NET 8 and .NET 10. Built on Microsoft.Extensions.AI provider boundaries β works with local models (Whisper, VibeVoice, Qwen-TTS, Ollama) and cloud providers (Azure OpenAI, OpenAI) without changing orchestration code.
Audio input
β
Audio normalization Β· resampling Β· framing Β· buffering
β
Voice Activity Detection (Silero VAD)
β
Turn detection Β· utterance assembly
β
ISpeechToTextClient
β
IChatClient
β
Streaming text segmentation
β
ITextToSpeechClient
β
Audio output
What's New
| Date | Version | Highlights |
|---|---|---|
| 2026-08-02 | 1.1.0 | BlazorComponents β ElBruno.Speech.BlazorComponents Razor Class Library with six ready-to-use speech pipeline UI components |
| 2026-08-02 | 1.0.0 | First stable release β production pipeline, 70+ tests, OpenTelemetry, CLI tool, and Aspire sample |
| 2026-07-30 | 0.6.0 | Dependency updates β MEAI 10.8.1, ONNX Runtime 1.28.0, and Extensions 10.0.10 |
| 2026-07-21 | 0.5.4 | Production hardening β STT timeout and error isolation per pipeline stage |
| 2026-07-05 | 0.5.3 | MEAI IRealtimeClient adapter β SpeechPipelineRealtimeAdapter wrapping the pipeline as an IRealtimeClient |
Packages
Installation
dotnet add package ElBruno.Speech.Pipeline
dotnet add package ElBruno.Speech.Vad.Silero
Install the CLI tool globally:
dotnet tool install -g ElBruno.Speech.Cli
elbrunospeech --help
Quick Start
// Register providers
services.AddWhisper(o => o.Model = KnownWhisperModels.WhisperBaseEn);
services.AddLocalLLMs(o => o.Model = KnownModels.Phi35MiniInstruct);
services.AddVibeVoiceTTS(o => o.SampleRate = 24_000);
services.AddSileroVad(o => o.MinimumSilenceDuration = TimeSpan.FromMilliseconds(500));
// Build the pipeline
services.AddSpeechPipeline(builder =>
{
builder
.UseVoiceActivityDetector<SileroVoiceActivityDetector>()
.UseSpeechToText(sp => sp.GetRequiredService<ISpeechToTextClient>())
.UseChatClient(sp => sp.GetRequiredService<IChatClient>())
.UseTextToSpeech(sp => sp.GetRequiredService<ITextToSpeechClient>())
.UseSentenceChunking(o =>
{
o.MinimumCharacters = 24;
o.MaximumCharacters = 220;
o.FlushTimeout = TimeSpan.FromMilliseconds(350);
})
.UseBargeIn(o => o.CancelOnSpeechStart = true);
});
// Use it
var pipeline = sp.GetRequiredService<ISpeechPipeline>();
await using var session = await pipeline.CreateSessionAsync();
await session.WriteAudioAsync(frame);
await foreach (var update in session.GetUpdatesAsync())
{
// SpeechStartedUpdate, FinalTranscriptUpdate, AssistantAudioChunkUpdate, ...
}
CLI Tool
elbrunospeech devices # list audio input/output devices
elbrunospeech transcribe recording.wav # transcribe a WAV file
elbrunospeech vad recording.wav # run voice activity detection
elbrunospeech talk "Hello world" out.wav # synthesize text to WAV
Observability
builder.Services.AddOpenTelemetry()
.AddSpeechPipelineTelemetry(); // meter: ElBruno.Speech, source: ElBruno.Speech
// Aspire automatically configures OTLP export via OTEL_EXPORTER_OTLP_ENDPOINT
Samples
| Sample | Description |
|---|---|
FileToSpeech |
WAV file β transcript β answer β WAV output |
LocalVoiceAgent |
Microphone β VAD β Whisper β LLM β VibeVoice β speaker (barge-in) |
WebSocketVoiceAgent |
ASP.NET Core WebSocket endpoint + browser client |
AspireVoiceAgent |
Full Aspire AppHost with tracing, metrics, and dashboard |
Related Repositories
- ElBruno.Whisper β
ISpeechToTextClientvia ONNX Whisper - ElBruno.LocalLLMs β
IChatClientfor local LLMs - ElBruno.VibeVoiceTTS β
ITextToSpeechClientvia VibeVoice - ElBruno.QwenTTS β
ITextToSpeechClientvia Qwen3-TTS - ElBruno.HuggingFace.Downloader β model downloads
Requirements
- .NET 8.0 or .NET 10.0
- Windows, Linux, or macOS
- NAudio package requires Windows (microphone/speaker I/O)
Building from Source
git clone https://github.com/elbruno/ElBruno.Speech.git
cd ElBruno.Speech
dotnet restore
dotnet build
dotnet test --filter "Category!=Integration"
π License
MIT β see LICENSE.
π About the Author
Hi! I'm ElBruno π§‘, a passionate developer and content creator exploring AI, .NET, and modern development practices.
Made with β€οΈ by ElBruno
If you like this project, consider following my work across platforms:
- π» Podcast: No Tienen Nombre β Spanish-language episodes on AI, development, and tech culture
- π» Blog: ElBruno.com β Deep dives on embeddings, RAG, .NET, and local AI
- πΊ YouTube: youtube.com/elbruno β Demos, tutorials, and live coding
- π LinkedIn: @elbruno β Professional updates and insights
- π Twitter: @elbruno β Quick tips, releases, and tech news
π Acknowledgments
- Microsoft.Extensions.AI β ISpeechToTextClient, IChatClient, ITextToSpeechClient interfaces
- Silero VAD β voice activity detection model
- ONNX Runtime β local model inference
- NAudio β Windows audio I/O
Changes from Previous Version
No structural changes between v1.2.0 and v1.3.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 2 target frameworks; confirm the exact target used by your application.The published metadata declares 14 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.