Verbara.Sdk.VoiceAi.Stt
2.2.1
dotnet add package Verbara.Sdk.VoiceAi.Stt --version 2.2.1
NuGet\Install-Package Verbara.Sdk.VoiceAi.Stt -Version 2.2.1
<PackageReference Include="Verbara.Sdk.VoiceAi.Stt" Version="2.2.1" />
<PackageVersion Include="Verbara.Sdk.VoiceAi.Stt" Version="2.2.1" />
<PackageReference Include="Verbara.Sdk.VoiceAi.Stt" />
paket add Verbara.Sdk.VoiceAi.Stt --version 2.2.1
#r "nuget: Verbara.Sdk.VoiceAi.Stt, 2.2.1"
#:package Verbara.Sdk.VoiceAi.Stt@2.2.1
#addin nuget:?package=Verbara.Sdk.VoiceAi.Stt&version=2.2.1
#tool nuget:?package=Verbara.Sdk.VoiceAi.Stt&version=2.2.1
Verbara.Sdk.VoiceAi.Stt
Speech-to-text providers for Verbara.Sdk.VoiceAi turn-based pipelines. 7 providers, each implementing ISpeechRecognizer from Verbara.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 Verbara.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 Verbara.Sdk.VoiceAi.Stt
You almost always want Verbara.Sdk.VoiceAi (the orchestration package) too:
dotnet add package Verbara.Sdk.VoiceAi
Quick start (Deepgram)
using Verbara.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 Verbara.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 Verbara.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
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Verbara.Sdk.VoiceAi (>= 2.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.