Asterisk.Sdk.VoiceAi.Stt
1.15.3
dotnet add package Asterisk.Sdk.VoiceAi.Stt --version 1.15.3
NuGet\Install-Package Asterisk.Sdk.VoiceAi.Stt -Version 1.15.3
<PackageReference Include="Asterisk.Sdk.VoiceAi.Stt" Version="1.15.3" />
<PackageVersion Include="Asterisk.Sdk.VoiceAi.Stt" Version="1.15.3" />
<PackageReference Include="Asterisk.Sdk.VoiceAi.Stt" />
paket add Asterisk.Sdk.VoiceAi.Stt --version 1.15.3
#r "nuget: Asterisk.Sdk.VoiceAi.Stt, 1.15.3"
#:package Asterisk.Sdk.VoiceAi.Stt@1.15.3
#addin nuget:?package=Asterisk.Sdk.VoiceAi.Stt&version=1.15.3
#tool nuget:?package=Asterisk.Sdk.VoiceAi.Stt&version=1.15.3
Asterisk.Sdk.VoiceAi.Stt
Speech-to-text providers for Asterisk.Sdk.VoiceAi turn-based pipelines. 7 providers, each implementing ISpeechRecognizer from Asterisk.Sdk.VoiceAi. Native AOT, zero reflection, hand-rolled HTTP/WebSocket clients (no vendor SDK dependencies). MIT licensed.
Providers
| Provider | Mode | Notes |
|---|---|---|
| Deepgram | Streaming WebSocket | Nova-2 model. Production default. Lowest latency in the catalog (~150ms). |
| Whisper (local) | Batch | Self-hosted whisper.cpp / OpenAI Whisper API endpoint. Air-gapped option. |
| Azure Whisper | Batch | Azure OpenAI Whisper deployments. Same format as Whisper with Azure auth. |
| Google Speech | Streaming gRPC over HTTP/2 | Standard model. Multi-language support. |
| Cartesia (Ink-Whisper) | Streaming WebSocket | Newer entrant; competitive latency at lower cost. |
| AssemblyAI (Universal) | Streaming WebSocket | Universal-2 model with strong technical/code recognition. |
| Speechmatics | Streaming WebSocket | Enterprise-grade with fine-grained punctuation/casing. |
All providers report metrics via the Asterisk.Sdk.VoiceAi.Stt Meter (latency histogram, request counters, error counters tagged by provider name). Health checks (SttHealthCheck) auto-registered when the recognizer is added through DI.
Install
dotnet add package Asterisk.Sdk.VoiceAi.Stt
You almost always want Asterisk.Sdk.VoiceAi (the orchestration package) too:
dotnet add package Asterisk.Sdk.VoiceAi
Quick start (Deepgram)
using Asterisk.Sdk.VoiceAi.Stt.DependencyInjection;
services.AddDeepgramSpeechRecognizer(o =>
{
o.ApiKey = configuration["Deepgram:ApiKey"]!;
o.Model = "nova-2";
o.Language = "en-US";
});
The recognizer is now resolvable as ISpeechRecognizer and registered with the VoiceAi pipeline. Connect AudioSocket on the Asterisk side and you have a streaming STT bridge.
Per-provider DI extensions
Each provider has its own Add*SpeechRecognizer extension (in Asterisk.Sdk.VoiceAi.Stt.DependencyInjection):
services.AddDeepgramSpeechRecognizer(o => { ... });
services.AddWhisperSpeechRecognizer(o => { ... });
services.AddAzureWhisperSpeechRecognizer(o => { ... });
services.AddGoogleSpeechRecognizer(o => { ... });
services.AddCartesiaSpeechRecognizer(o => { ... });
services.AddAssemblyAiSpeechRecognizer(o => { ... });
services.AddSpeechmaticsSpeechRecognizer(o => { ... });
Examples
Examples/VoiceAiExample/— Deepgram + ElevenLabs + echo handler (default end-to-end demo).Examples/VoiceAiAssemblyAiExample/— AssemblyAI Universal-2.Examples/VoiceAiSpeechmaticsExample/— Speechmatics enterprise STT.Examples/VoiceAiCartesiaExample/— Cartesia Ink-Whisper STT + Sonic-3 TTS.
Native AOT
All HTTP/WebSocket clients hand-rolled with HttpClient / ClientWebSocket. JSON serialization via source-generated JsonSerializerContext (VoiceAiSttJsonContext). 0 trim warnings. See ADR-0014 for the no-vendor-SDK rationale.
License
MIT. Part of the Asterisk.Sdk project.
| 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
- Asterisk.Sdk.VoiceAi (>= 1.15.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.15.3 | 429 | 5/3/2026 | |
| 1.15.2 | 140 | 4/27/2026 | |
| 1.15.1 | 148 | 4/26/2026 | |
| 1.15.0 | 187 | 4/20/2026 | |
| 1.14.0 | 131 | 4/20/2026 | |
| 1.13.0 | 134 | 4/20/2026 | |
| 1.12.0 | 132 | 4/19/2026 | |
| 1.11.1 | 135 | 4/19/2026 | |
| 1.11.0 | 128 | 4/19/2026 | |
| 1.10.2 | 139 | 4/18/2026 | |
| 1.10.1 | 121 | 4/18/2026 | |
| 1.10.0 | 146 | 4/18/2026 | |
| 1.9.0 | 142 | 4/17/2026 | |
| 1.8.1 | 131 | 4/16/2026 | |
| 1.8.0 | 142 | 4/13/2026 | |
| 1.7.0 | 140 | 4/13/2026 | |
| 1.6.0 | 131 | 4/13/2026 | |
| 1.5.5 | 131 | 4/9/2026 | |
| 1.5.3 | 1,108 | 3/30/2026 | |
| 1.5.2 | 149 | 3/30/2026 |