Files
sherpa-onnx/scripts/dotnet/OfflineSourceSeparationUvrModelConfig.cs
Fangjun Kuang 0a923733a7 Add C# API for source separation (#3406)
This pull request enhances the C# API by introducing robust support for offline source separation. It provides new classes and configurations that enable developers to perform tasks such as vocal/accompaniment separation using both Spleeter and UVR models. The inclusion of ready-to-run examples simplifies the integration process and demonstrates the API's capabilities, making it easier for users to leverage these advanced audio processing features.
2026-03-25 15:16:00 +08:00

19 lines
414 B
C#

/// Copyright (c) 2026 Xiaomi Corporation (authors: Fangjun Kuang)
using System.Runtime.InteropServices;
namespace SherpaOnnx
{
[StructLayout(LayoutKind.Sequential)]
public struct OfflineSourceSeparationUvrModelConfig
{
public OfflineSourceSeparationUvrModelConfig()
{
Model = "";
}
[MarshalAs(UnmanagedType.LPStr)]
public string Model;
}
}