C# API for speaker diarization (#1407)
This commit is contained in:
32
scripts/dotnet/OfflineSpeakerSegmentationModelConfig.cs
Normal file
32
scripts/dotnet/OfflineSpeakerSegmentationModelConfig.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
/// Copyright (c) 2024 Xiaomi Corporation
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SherpaOnnx
|
||||
{
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct OfflineSpeakerSegmentationModelConfig
|
||||
{
|
||||
public OfflineSpeakerSegmentationModelConfig()
|
||||
{
|
||||
Pyannote = new OfflineSpeakerSegmentationPyannoteModelConfig();
|
||||
NumThreads = 1;
|
||||
Debug = 0;
|
||||
Provider = "cpu";
|
||||
}
|
||||
|
||||
public OfflineSpeakerSegmentationPyannoteModelConfig Pyannote;
|
||||
|
||||
/// Number of threads used to run the neural network model
|
||||
public int NumThreads;
|
||||
|
||||
/// true to print debug information of the model
|
||||
public int Debug;
|
||||
|
||||
[MarshalAs(UnmanagedType.LPStr)]
|
||||
public string Provider;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user