Voxa.AspNetCore
0.4.0-alpha
See the version list below for details.
dotnet add package Voxa.AspNetCore --version 0.4.0-alpha
NuGet\Install-Package Voxa.AspNetCore -Version 0.4.0-alpha
<PackageReference Include="Voxa.AspNetCore" Version="0.4.0-alpha" />
<PackageVersion Include="Voxa.AspNetCore" Version="0.4.0-alpha" />
<PackageReference Include="Voxa.AspNetCore" />
paket add Voxa.AspNetCore --version 0.4.0-alpha
#r "nuget: Voxa.AspNetCore, 0.4.0-alpha"
#:package Voxa.AspNetCore@0.4.0-alpha
#addin nuget:?package=Voxa.AspNetCore&version=0.4.0-alpha&prerelease
#tool nuget:?package=Voxa.AspNetCore&version=0.4.0-alpha&prerelease
Voxa.AspNetCore
Fluent ASP.NET Core integration for Voxa. Drop a real-time voice pipeline into a MAF-using app with one fluent expression — no manual Pipeline.Build() / PipelineRunner plumbing, no per-connection boilerplate.
app.MapVoxaVoice("/voice", voice => voice
.UseSpeechToText(() => OpenAISpeech.StreamingTranscription(opts))
.UseTranscriptionFilter()
.UseMicrosoftAgent(agent)
.UseSentenceAggregator()
.UseTextToSpeech(() => OpenAISpeech.Synthesis(opts)));
That's the whole endpoint. WebSocket lifecycle, source/sink wiring, deadlock-safe agent loop, frontend-tool round-trips, and turn-boundary frames are all wired for you.
What MapVoxaVoice does
- Maps a
GETroute that upgrades to a WebSocket on request. - Accepts the socket and (if configured) reads a typed
helloenvelope before the pipeline starts. - Builds a per-connection pipeline by invoking each registered processor factory:
WebSocketAudioSource → registered processors (in order) → WebSocketAudioSink. - Runs a
PipelineRunnerfor the connection's lifetime; tears down cleanly when the client disconnects orEndFrameis observed.
Builder surface
voice.UseProcessor(ctx => new MyProcessor(ctx.RequestServices.GetRequiredService<...>()))
voice.UseProcessor(() => new MyStatelessProcessor())
// Speech vendor convenience
voice.UseSpeechToText(() => OpenAISpeech.StreamingTranscription(opts))
voice.UseTextToSpeech(() => OpenAISpeech.Synthesis(opts))
voice.UseSentenceAggregator()
voice.UseTranscriptionFilter()
voice.UseSilenceGate()
// Microsoft Agent Framework
voice.UseMicrosoftAgent(agent)
voice.UseMicrosoftAgent(agent, options => { /* configure */ })
voice.UseMicrosoftAgent(ctx => agentFactory(ctx), (ctx, options) => { /* configure */ })
// Endpoint metadata
voice.RequireAuthorization("MyPolicy")
voice.RequireCors("MyCorsPolicy")
// Hello envelope (typed; lands in HttpContext.Items[VoiceHello.HelloMetadataKey])
voice.UseWebSocketHello<MyHello>((ws, ct) => ParseAsync(ws, ct))
// Custom frame types — emit your own JSON envelope without subclassing the sink
voice.UseCustomFrameSerializer(frame =>
frame is MyFrame f ? JsonSerializer.Serialize(new { type = "myFrame", ... }) : null)
Advanced MAF integration
UseMicrosoftAgent(agent, options => {...}) exposes the full MicrosoftAgentVoiceOptions surface for hosts that need persisted history, frontend tools, post-turn audit, sanitized backend-tool progress, etc.:
voice.UseMicrosoftAgent(agent, options =>
{
options.BuildMessages = (turn, ct) => LoadHistoryAsync(turn.UserText, ct);
options.IsFrontendTool = name => myFrontendCatalog.Contains(name);
options.BuildBackendToolStatus = name => name switch
{
"pf_get_spending_summary" => "Checking your spending...",
_ => null,
};
options.OnTurnCompleted = (turn, summary, ct) => RecordAuditAsync(turn, summary, ct);
});
See the main repo for the full options reference and the underlying AgentLoopProcessor design.
| 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
- Voxa.Core (>= 0.4.0-alpha)
- Voxa.Services.MicrosoftAgents (>= 0.4.0-alpha)
- Voxa.Speech.Abstractions (>= 0.4.0-alpha)
- Voxa.Transports.WebSocket (>= 0.4.0-alpha)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Voxa.AspNetCore:
| Package | Downloads |
|---|---|
|
Voxa
Batteries-included Voxa package. One package reference: AddVoxa(cfg) + MapVoxaVoice("/voice").UseDefaults() gives a working voice bot with STT, TTS, VAD, and an OpenAI chat agent — no knowledge of frames required. |
|
|
Voxa.Transports.Twilio
Twilio Media Streams transport for the Voxa pipeline (VTL-001). MapVoxaTwilioVoice("/twilio") serves the TwiML webhook and accepts the media WebSocket, running a phone call through the SAME composed VAD→STT→agent→TTS pipeline as the native route — with barge-in. The wire is hand-rolled JSON over the shared Voxa.Transports.Telephony base (μ-law 8 kHz); no Twilio SDK, no WebRTC. Includes X-Twilio-Signature validation. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.2-alpha | 131 | 7/10/2026 |
| 0.7.1-alpha | 100 | 7/10/2026 |
| 0.7.0-alpha | 97 | 7/10/2026 |
| 0.6.0-alpha | 103 | 6/22/2026 |
| 0.5.0-alpha | 95 | 6/13/2026 |
| 0.4.0-alpha | 1,723 | 5/10/2026 |