Add C# API for SenseVoice models (#1151)
This commit is contained in:
24
scripts/dotnet/OfflineSenseVoiceModelConfig.cs
Normal file
24
scripts/dotnet/OfflineSenseVoiceModelConfig.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
/// Copyright (c) 2024 Xiaomi Corporation (authors: Fangjun Kuang)
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SherpaOnnx
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct OfflineSenseVoiceModelConfig
|
||||
{
|
||||
public OfflineSenseVoiceModelConfig()
|
||||
{
|
||||
Model = "";
|
||||
Language = "";
|
||||
UseInverseTextNormalization = 0;
|
||||
}
|
||||
[MarshalAs(UnmanagedType.LPStr)]
|
||||
public string Model;
|
||||
|
||||
[MarshalAs(UnmanagedType.LPStr)]
|
||||
public string Language;
|
||||
|
||||
public int UseInverseTextNormalization;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user