mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-11 05:20:52 +08:00
33 lines
735 B
C#
33 lines
735 B
C#
/// Copyright (c) 2025 Xiaomi Corporation (authors: Fangjun Kuang)
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SherpaOnnx
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct AudioTaggingModelConfig
|
|
{
|
|
public AudioTaggingModelConfig()
|
|
{
|
|
Zipformer = new OfflineZipformerAudioTaggingModelConfig();
|
|
|
|
CED = "";
|
|
NumThreads = 1;
|
|
Debug = 0;
|
|
Provider = "cpu";
|
|
}
|
|
|
|
public OfflineZipformerAudioTaggingModelConfig Zipformer;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string CED;
|
|
|
|
public int NumThreads;
|
|
|
|
public int Debug;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string Provider;
|
|
}
|
|
}
|