Add C# API for Kokoro TTS 1.0 (#1805)

This commit is contained in:
Fangjun Kuang
2025-02-07 15:39:03 +08:00
committed by GitHub
parent e1a88a799f
commit ae32dfaa56
4 changed files with 74 additions and 2 deletions

View File

@@ -15,6 +15,9 @@ namespace SherpaOnnx
DataDir = "";
LengthScale = 1.0F;
DictDir = "";
Lexicon = "";
}
[MarshalAs(UnmanagedType.LPStr)]
public string Model;
@@ -29,5 +32,11 @@ namespace SherpaOnnx
public string DataDir;
public float LengthScale;
[MarshalAs(UnmanagedType.LPStr)]
public string DictDir;
[MarshalAs(UnmanagedType.LPStr)]
public string Lexicon;
}
}