Secs2R 0.19.0

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

Programs that use this package must be distributed under terms compatible with the GNU AGPL-3.0.

Secs2R for .NET

Secs2R exposes the SECS 2R room-correction engine and its authenticated local API client to .NET. It accepts and returns the same JSON values as the desktop application.

Install

dotnet add package Secs2R

The package targets .NET Standard 2.1 and .NET 8. Native libraries are included for Windows x64, Linux x64, macOS x64, and macOS arm64.

Embedded engine

using Secs2R;
using System.Text.Json;

using var engine = new Engine("settings.json");
using var request = JsonDocument.Parse("{\"method\":\"bootstrap\"}");
JsonElement info = engine.Call(request.RootElement);
Console.WriteLine(info.GetProperty("data").GetProperty("version"));

Long-running requests return a job identifier. Call WaitJob for the terminal event, or open Events to receive every later job event. Events subscribes when it is called, so open it before starting the job it should watch.

await using EventStream events = engine.Events(cancellationToken);
JsonElement started = engine.Call(calibrateRequest);
await foreach (JsonElement jobEvent in events)
{
    Console.WriteLine(jobEvent.GetRawText());
}

An EventStream can be enumerated once; open another one for a second reader. Each stream queues up to 1024 events. A reader that falls further behind loses the newest ones, and EventStream.DroppedEvents counts them; when it grows, ask for the job's state with WaitJob.

Running application

Enable the local API in the SECS 2R application, then create a client. With no token arguments, Client reads the application's default token file.

using var client = new Client();
JsonElement status = client.Status();
Console.WriteLine(status.GetProperty("app_name"));

Pass token directly or use tokenPath for another token file. Client.Events connects to the running application's event socket on the calling thread; Client.EventsAsync connects on the thread pool and can be cancelled, for a UI thread.

Errors

Engine, client, transport, protocol, and binding errors throw SecsException. Its Code is stable for program logic; Message, Detail, and Retryable carry the error text and retry guidance.

What is not included

Native audio-device measurement, GPU acceleration, desktop screens, and dialogs are not included. Project files, imported and mock measurements, calibration, MIMO, results, and exports are available through the embedded engine.

Licence

Secs2R and its native engine are licensed under AGPL-3.0-only. If you modify the software and offer it to users over a network, you must offer those users the corresponding source. The SECS 2R desktop application remains GPL-3.0-only. Repository: https://github.com/115dkk/Sound-Equalization-and-Correction-System-2R.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.26.0 67 11/19/2026
0.25.3 53 11/19/2026
0.25.2 93 11/15/2026
0.25.1 78 11/13/2026
0.25.0 94 11/12/2026
0.24.0 89 11/11/2026
0.23.3 88 11/11/2026
0.23.2 83 11/11/2026
0.23.1 93 11/10/2026
0.23.0 94 11/9/2026
0.22.0 92 11/6/2026
0.21.0 92 11/5/2026
0.20.0 92 11/4/2026
0.19.0 100 11/4/2026
0.18.0 100 11/4/2026
0.17.0 93 11/4/2026
0.16.0 96 11/3/2026