Summary
Add an ASP.NET Core middleware component that makes it trivial to add real-time transcription WebSocket endpoints to any ASP.NET Core web application — handling WebSocket upgrade, audio streaming to Deepgram, and transcript delivery back to the client with minimal configuration.
Problem it solves
.NET developers building web applications that need real-time transcription must manually implement WebSocket handling, audio buffering, Deepgram connection management, and transcript forwarding in every project. This involves significant boilerplate: WebSocket middleware registration, binary message handling, connection lifecycle management, and error handling. An ASP.NET Core middleware that handles the Deepgram WebSocket proxy pattern lets developers add transcription to their app with a few lines in Program.cs, similar to how middleware exists for authentication, CORS, and other cross-cutting concerns.
Proposed API
// Program.cs — add transcription endpoint in 3 lines
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDeepgramTranscription(options => {
options.ApiKey = builder.Configuration["Deepgram:ApiKey"];
options.Model = "nova-3";
options.Language = "en";
});
var app = builder.Build();
app.MapDeepgramTranscription("/ws/transcribe"); // WebSocket endpoint
app.Run();
// Client connects to /ws/transcribe, sends audio, receives transcripts
// Middleware handles: WebSocket upgrade, audio forwarding, transcript relay
Acceptance criteria
Raised by the DX intelligence system.
Summary
Add an ASP.NET Core middleware component that makes it trivial to add real-time transcription WebSocket endpoints to any ASP.NET Core web application — handling WebSocket upgrade, audio streaming to Deepgram, and transcript delivery back to the client with minimal configuration.
Problem it solves
.NET developers building web applications that need real-time transcription must manually implement WebSocket handling, audio buffering, Deepgram connection management, and transcript forwarding in every project. This involves significant boilerplate: WebSocket middleware registration, binary message handling, connection lifecycle management, and error handling. An ASP.NET Core middleware that handles the Deepgram WebSocket proxy pattern lets developers add transcription to their app with a few lines in Program.cs, similar to how middleware exists for authentication, CORS, and other cross-cutting concerns.
Proposed API
Acceptance criteria
AddDeepgramTranscription()service registration extensionMapDeepgramTranscription()endpoint mapping extensionIConfiguration(appsettings.json)Raised by the DX intelligence system.