Asterisk.Sdk.VoiceAi.AudioSocket
1.15.3
Suggested Alternatives
dotnet add package Asterisk.Sdk.VoiceAi.AudioSocket --version 1.15.3
NuGet\Install-Package Asterisk.Sdk.VoiceAi.AudioSocket -Version 1.15.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Asterisk.Sdk.VoiceAi.AudioSocket" Version="1.15.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asterisk.Sdk.VoiceAi.AudioSocket" Version="1.15.3" />
<PackageReference Include="Asterisk.Sdk.VoiceAi.AudioSocket" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Asterisk.Sdk.VoiceAi.AudioSocket --version 1.15.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Asterisk.Sdk.VoiceAi.AudioSocket, 1.15.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Asterisk.Sdk.VoiceAi.AudioSocket@1.15.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Asterisk.Sdk.VoiceAi.AudioSocket&version=1.15.3
#tool nuget:?package=Asterisk.Sdk.VoiceAi.AudioSocket&version=1.15.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Asterisk.Sdk.VoiceAi.AudioSocket
AudioSocket transport for Asterisk.Sdk.VoiceAi — bridges Asterisk AudioSocket streams into the Voice AI pipeline.
Installation
dotnet add package Asterisk.Sdk.VoiceAi.AudioSocket
Quick Start
// Register as a hosted service (DI lifecycle managed)
services.AddAudioSocketServer(opts =>
{
opts.ListenAddress = "0.0.0.0";
opts.Port = 9092;
opts.MaxConcurrentSessions = 100;
});
// Handle sessions manually (without VoiceAi pipeline)
var server = app.Services.GetRequiredService<AudioSocketServer>();
server.OnSessionStarted += async session =>
{
await foreach (var frame in session.ReadAudioAsync(ct))
{
// process 20 ms PCM16 frames from Asterisk
}
await session.WriteAudioAsync(responseAudio, ct);
};
Features
AudioSocketServer—IHostedServiceTCP server; accepts Asterisk AudioSocket connectionsAudioSocketSession— per-call session withReadAudioAsync()andWriteAudioAsync()for 20 ms PCM16 frames- UUID handshake: automatically reads the channel UUID frame from Asterisk on connection
OnSessionStartedevent for routing sessions to custom handlersAddAudioSocketServer()DI extension for one-line registration- Zero-copy
System.IO.Pipelinesframing; Native AOT compatible
Documentation
See the main README for full documentation.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Asterisk.Sdk.Audio (>= 1.15.3)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.7)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Asterisk.Sdk.VoiceAi.AudioSocket:
| Package | Downloads |
|---|---|
|
Asterisk.Sdk.VoiceAi
Voice AI pipeline for Asterisk.Sdk — orchestration layer for STT, TTS and conversation with turn-taking and barge-in detection. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.15.3 | 196 | 5/3/2026 | |
| 1.15.2 | 168 | 4/27/2026 | |
| 1.15.1 | 175 | 4/26/2026 | |
| 1.15.0 | 206 | 4/20/2026 | |
| 1.14.0 | 153 | 4/20/2026 | |
| 1.13.0 | 165 | 4/20/2026 | |
| 1.12.0 | 176 | 4/19/2026 | |
| 1.11.1 | 159 | 4/19/2026 | |
| 1.11.0 | 156 | 4/19/2026 | |
| 1.10.2 | 167 | 4/18/2026 | |
| 1.10.1 | 149 | 4/18/2026 | |
| 1.10.0 | 178 | 4/18/2026 | |
| 1.9.0 | 169 | 4/17/2026 | |
| 1.8.1 | 160 | 4/16/2026 | |
| 1.8.0 | 176 | 4/13/2026 | |
| 1.7.0 | 156 | 4/13/2026 | |
| 1.6.0 | 157 | 4/13/2026 | |
| 1.5.5 | 197 | 4/9/2026 | |
| 1.5.3 | 1,138 | 3/30/2026 | |
| 1.5.2 | 182 | 3/30/2026 |
Loading failed