Voxa.Core
0.1.0-alpha
See the version list below for details.
dotnet add package Voxa.Core --version 0.1.0-alpha
NuGet\Install-Package Voxa.Core -Version 0.1.0-alpha
<PackageReference Include="Voxa.Core" Version="0.1.0-alpha" />
<PackageVersion Include="Voxa.Core" Version="0.1.0-alpha" />
<PackageReference Include="Voxa.Core" />
paket add Voxa.Core --version 0.1.0-alpha
#r "nuget: Voxa.Core, 0.1.0-alpha"
#:package Voxa.Core@0.1.0-alpha
#addin nuget:?package=Voxa.Core&version=0.1.0-alpha&prerelease
#tool nuget:?package=Voxa.Core&version=0.1.0-alpha&prerelease
Voxa
A frame-based, real-time voice AI pipeline framework for .NET. Inspired by Pipecat; built around the Microsoft Agent Framework, Azure Voice Live, and Azure Speech.
Status: pre-alpha (0.1.x). Public API stabilising. Not yet on NuGet.
What it is
Voxa lets you compose real-time voice agents from small, testable processors. Each processor consumes and emits typed Frames — audio, transcription, tool calls, control signals. System frames (interruption, errors) preempt data frames in their own task. Pipelines run asynchronously with bounded backpressure on data, unbounded priority on system signals.
var pipeline = Pipeline.Build()
.Source(new WebSocketAudioSource(ws))
.Then(new AzureVoiceLiveProcessor(opts))
.Sink(new WebSocketAudioSink(ws));
await using var runner = new PipelineRunner(pipeline);
await runner.StartAsync();
await runner.WaitAsync();
Why not just call Voice Live (or OpenAI Realtime) directly
Voice Live is great for the simple case. But the moment you have a second backend (regional fallback, premium voices Voice Live doesn't host, OpenAI Realtime, telephony), one tenant policy that diverges, or an audit/cost/observability concern that crosses backends, you need a pipeline. Voxa is that pipeline. The Voice Live composite processor is one node in it; you can swap it for an Azure Speech STT → MAF agent → Azure Speech TTS chain on the same wire.
The same AzureVoiceLiveProcessor speaks Azure Voice Live, Azure OpenAI Realtime, and OpenAI Realtime — they share a wire protocol, so only the endpoint URL and auth header change.
Packages
| Package | Description |
|---|---|
Voxa.Core |
Frames, processors, pipeline, runner. Zero external deps beyond NUlid. |
Voxa.Testing |
WAV file source/sink, capturing/passthrough processors. |
Voxa.Transports.WebSocket |
Host-agnostic source + sink over System.Net.WebSockets.WebSocket. |
Voxa.Services.AzureVoiceLive |
Composite STT+LLM+TTS+VAD via the Realtime API protocol. |
Voxa.Services.AzureSpeech |
Granular STT + TTS via the Cognitive Services Speech SDK. |
Voxa.Services.MicrosoftAgents |
Wraps any Microsoft Agent Framework AIAgent as a processor. |
Voxa.Observability |
TracingProcessor + VoxaActivities ActivitySource for OpenTelemetry. |
Architecture
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│PipelineSource│-->│FrameProcessor│-->│ PipelineSink │
└──────────────┘ └──────────────┘ └──────────────┘
│ ↑ │
IngestAsync ErrorFrame ReadAllAsync
(upstream)
Each FrameProcessor runs two concurrent tasks: a system task draining priority frames (InterruptionFrame, speaking events, errors) and a data task draining ordered frames. An interruption mid-frame cancels the in-flight data frame's CancellationToken so long-running calls (LLM streaming, TTS synthesis) abort cleanly.
Two pipeline shapes
Voice Live path — managed STT+LLM+TTS+VAD in a single processor:
Pipeline.Build()
.Source(new WebSocketAudioSource(ws))
.Then(new AzureVoiceLiveProcessor(voiceLiveOpts))
.Sink(new WebSocketAudioSink(ws));
Granular path — for tenants without Voice Live regional access, premium voices, or a different LLM stack:
Pipeline.Build()
.Source(new WebSocketAudioSource(ws))
.Then(new AzureSpeechSttProcessor(speechOpts))
.Then(new MicrosoftAgentsProcessor(yourAgent))
.Then(new AzureSpeechTtsProcessor(speechOpts))
.Sink(new WebSocketAudioSink(ws));
Wire protocol
Binary WebSocket frames carry raw 16-bit PCM @ 24 kHz mono. Text WebSocket frames carry typed JSON envelopes:
Client → Server: hello, end, text, toolResult
Server → Client: transcription, text, toolCall, speaking, interruption, error, end
See WireProtocol.cs for the codec.
Observability
Voxa.Observability publishes VoxaActivities.Source (an ActivitySource named Voxa). Drop a TracingProcessor anywhere in the pipeline to emit per-frame spans:
Pipeline.Build()
.Source(...)
.Then(new TracingProcessor("user-input"))
.Then(new AzureVoiceLiveProcessor(opts))
.Then(new TracingProcessor("voice-live-out"))
.Sink(...);
Wire OpenTelemetry to capture them:
services.AddOpenTelemetry()
.WithTracing(t => t.AddSource("Voxa").AddOtlpExporter());
Sample app
samples/Voxa.Samples.AspNetServer — minimal ASP.NET Core voice-agent server. dotnet run it, point a WebSocket client at wss://localhost:5001/voice, stream PCM.
Building
dotnet build
dotnet test
Targets net10.0. Requires .NET 10 SDK.
Roadmap
| Phase | Scope |
|---|---|
| 1 | ✅ Core pipeline primitives |
| 2 | ✅ AzureVoiceLive composite + Voxa.Testing harness |
| 3 | ✅ WebSocket transport + Microsoft Agents adapter |
| 5 | ✅ AzureSpeech STT/TTS standalone + ASP.NET sample |
| 6 (current) | Observability, OSS release, NuGet publish, CI |
| 4 | Mobile client integration (downstream consumers) |
(Phase 4 swapped to last since it lives in consuming repos, not Voxa itself.)
Contributing
See CONTRIBUTING.md. All contributions need an issue or design doc reference for non-trivial changes.
License
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- NUlid (>= 1.7.3)
NuGet packages (18)
Showing the top 5 NuGet packages that depend on Voxa.Core:
| Package | Downloads |
|---|---|
|
Voxa.Speech.Abstractions
Vendor-neutral STT and TTS abstractions for the Voxa pipeline. Defines ISpeechToTextEngine, ITextToSpeechEngine, and the generic SpeechToTextProcessor / TextToSpeechProcessor that any vendor engine plugs into. |
|
|
Voxa.Services.MicrosoftAgents
Adapter that wraps any Microsoft.Agents.AI AIAgent as a Voxa FrameProcessor. Bridges transcribed user input into the agent and pumps streamed text + tool calls back into the pipeline. |
|
|
Voxa.Transports.WebSocket
WebSocket source and sink processors for the Voxa pipeline. Operates over any System.Net.WebSockets.WebSocket — works with ASP.NET Core, ClientWebSocket, and any host that surfaces a WebSocket. |
|
|
Voxa.Services.AzureVoiceLive
Composite STT+LLM+TTS+VAD processor for the Voxa pipeline framework, backed by the Azure Voice Live API. The same processor speaks Azure OpenAI Realtime and OpenAI Realtime by changing the endpoint. |
|
|
Voxa.Audio.SileroVad
ML-based voice activity detection for the Voxa pipeline using the Silero VAD ONNX model. Drop-in replacement for SilenceGateProcessor when energy-based filtering isn't enough — handles noisy environments and emits the same UserStartedSpeakingFrame / UserStoppedSpeakingFrame as Voice Live. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.2-alpha | 274 | 7/10/2026 |
| 0.7.1-alpha | 222 | 7/10/2026 |
| 0.7.0-alpha | 226 | 7/10/2026 |
| 0.6.0-alpha | 225 | 6/22/2026 |
| 0.5.0-alpha | 166 | 6/13/2026 |
| 0.4.0-alpha | 1,779 | 5/10/2026 |
| 0.3.0-alpha | 149 | 5/9/2026 |
| 0.2.0-alpha | 145 | 5/8/2026 |
| 0.1.0-alpha.2 | 120 | 5/8/2026 |
| 0.1.0-alpha | 139 | 5/8/2026 |