SilkCodec.NET
1.0.0
See the version list below for details.
dotnet add package SilkCodec.NET --version 1.0.0
NuGet\Install-Package SilkCodec.NET -Version 1.0.0
<PackageReference Include="SilkCodec.NET" Version="1.0.0" />
<PackageVersion Include="SilkCodec.NET" Version="1.0.0" />
<PackageReference Include="SilkCodec.NET" />
paket add SilkCodec.NET --version 1.0.0
#r "nuget: SilkCodec.NET, 1.0.0"
#:package SilkCodec.NET@1.0.0
#addin nuget:?package=SilkCodec.NET&version=1.0.0
#tool nuget:?package=SilkCodec.NET&version=1.0.0
SilkCodec.NET
Pure C# legacy SILK v3 encoding for .NET 8 and .NET 10. The encoder does not use P/Invoke, IKVM, Java, or any native codec library.
The codec core is a source-level C# port of Jitsi's Apache-2.0 standalone SILK SDK implementation, cross-checked against the bundled Skype SILK C source.
Usage
using SilkCodec.NET;
short[] monoPcm = GetMonoPcm16();
var encoder = new SilkEncoder(new SilkEncoderOptions
{
SampleRate = 24_000,
MaxInternalSampleRate = 24_000,
BitRate = 25_000,
PacketLengthMilliseconds = 20,
Complexity = 2,
Tencent = true
});
byte[] silk = encoder.Encode(monoPcm);
File.WriteAllBytes("voice.silk", silk);
EncodePcm16LittleEndian accepts raw mono signed 16-bit little-endian PCM bytes. Incomplete final 20 ms frames are discarded, matching the reference silk-codec/test/Encoder.c behavior.
Standard output starts with #!SILK_V3, stores each packet as a little-endian signed 16-bit length followed by payload, and ends with -1. Tencent output adds a leading 0x02 and omits the terminator.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.