Add dict_dir arg to c api to support Chinese TTS models using jieba (#809)

This commit is contained in:
Fangjun Kuang
2024-04-25 12:28:31 +08:00
committed by GitHub
parent 83cd533f67
commit 6686c7d3e6
12 changed files with 48 additions and 6 deletions

View File

@@ -23,6 +23,8 @@ namespace SherpaOnnx
NoiseScale = 0.667F;
NoiseScaleW = 0.8F;
LengthScale = 1.0F;
DictDir = "";
}
[MarshalAs(UnmanagedType.LPStr)]
public string Model;
@@ -39,6 +41,9 @@ namespace SherpaOnnx
public float NoiseScale;
public float NoiseScaleW;
public float LengthScale;
[MarshalAs(UnmanagedType.LPStr)]
public string DictDir;
}
[StructLayout(LayoutKind.Sequential)]