Asterisk.Sdk.Audio 1.10.0

Suggested Alternatives

Verbara.Sdk.Audio

There is a newer version of this package available.
See the version list below for details.
dotnet add package Asterisk.Sdk.Audio --version 1.10.0
                    
NuGet\Install-Package Asterisk.Sdk.Audio -Version 1.10.0
                    
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.Audio" Version="1.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asterisk.Sdk.Audio" Version="1.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Asterisk.Sdk.Audio" />
                    
Project file
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.Audio --version 1.10.0
                    
#r "nuget: Asterisk.Sdk.Audio, 1.10.0"
                    
#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.Audio@1.10.0
                    
#: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.Audio&version=1.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Asterisk.Sdk.Audio&version=1.10.0
                    
Install as a Cake Tool

Asterisk.Sdk.Audio

Audio processing library for Asterisk.Sdk — resampling, format conversion, gain, and silence detection.

Installation

dotnet add package Asterisk.Sdk.Audio

Quick Start

// Resample from 8 kHz (Asterisk native) to 16 kHz (AI model input)
var resampler = ResamplerFactory.Create(8000, 16000);
var input = AudioFormat.Slin16Mono8kHz;
var output = AudioFormat.Slin16Mono16kHz;

var maxBytes = resampler.MaxOutputBytes(inputBytes.Length);
var outBuf = new byte[maxBytes];
var written = resampler.Process(inputBytes, outBuf);

// Convert PCM16 to normalized float32 for AI model inference
var shorts = MemoryMarshal.Cast<byte, short>(inputBytes.AsSpan());
var floats = new float[shorts.Length];
AudioProcessor.ConvertToFloat32(shorts, floats);

// Silence detection (default -40 dBFS threshold)
if (AudioProcessor.IsSilence(shorts))
    Console.WriteLine("Silence detected");

Features

  • ResamplerFactory — polyphase resampler for 12 telephony rate pairs (8/16/24/48 kHz)
  • AudioProcessor — PCM16↔float32 conversion, gain (dB), RMS energy, silence detection
  • AudioFormat — immutable value type with predefined telephony formats (Slin16Mono8kHz, Float32Mono16kHz, etc.)
  • IAudioTransform — chainable processing interface for custom pipeline stages
  • Zero-alloc Span<T>-based API throughout; Native AOT compatible

Documentation

See the main README for full documentation.

Product 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

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Asterisk.Sdk.Audio:

Package Downloads
Asterisk.Sdk.VoiceAi.AudioSocket

AudioSocket transport for Asterisk.Sdk — bidirectional PCM audio streaming over TCP using the Asterisk AudioSocket protocol.

Asterisk.Sdk.VoiceAi

Voice AI pipeline for Asterisk.Sdk — orchestration layer for STT, TTS and conversation with turn-taking and barge-in detection.

Asterisk.Sdk.VoiceAi.OpenAiRealtime

OpenAI Realtime API bridge for Asterisk.Sdk.VoiceAi — connects Asterisk AudioSocket directly to GPT-4o in real time, with function calling and observability. Zero third-party dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.15.3 204 5/3/2026 1.15.3 is deprecated because it is no longer maintained.
1.15.2 177 4/27/2026 1.15.2 is deprecated because it is no longer maintained.
1.15.1 186 4/26/2026 1.15.1 is deprecated because it is no longer maintained.
1.15.0 216 4/20/2026 1.15.0 is deprecated because it is no longer maintained.
1.14.0 169 4/20/2026 1.14.0 is deprecated because it is no longer maintained.
1.13.0 165 4/20/2026 1.13.0 is deprecated because it is no longer maintained.
1.12.0 169 4/19/2026 1.12.0 is deprecated because it is no longer maintained.
1.11.1 168 4/19/2026 1.11.1 is deprecated because it is no longer maintained.
1.11.0 159 4/19/2026 1.11.0 is deprecated because it is no longer maintained.
1.10.2 174 4/18/2026 1.10.2 is deprecated because it is no longer maintained.
1.10.1 160 4/18/2026 1.10.1 is deprecated because it is no longer maintained.
1.10.0 187 4/18/2026 1.10.0 is deprecated because it is no longer maintained.
1.9.0 168 4/17/2026 1.9.0 is deprecated because it is no longer maintained.
1.8.1 164 4/16/2026 1.8.1 is deprecated because it is no longer maintained.
1.8.0 188 4/13/2026 1.8.0 is deprecated because it is no longer maintained.
1.7.0 164 4/13/2026 1.7.0 is deprecated because it is no longer maintained.
1.6.0 164 4/13/2026 1.6.0 is deprecated because it is no longer maintained.
1.5.5 201 4/9/2026 1.5.5 is deprecated because it is no longer maintained.
1.5.3 1,148 3/30/2026 1.5.3 is deprecated because it is no longer maintained.
1.5.2 180 3/30/2026 1.5.2 is deprecated because it is no longer maintained.
Loading failed