31 lines
681 B
C#
31 lines
681 B
C#
/// Copyright (c) 2024.5 by 东风破
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SherpaOnnx
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct OfflineTtsConfig
|
|
{
|
|
public OfflineTtsConfig()
|
|
{
|
|
Model = new OfflineTtsModelConfig();
|
|
RuleFsts = "";
|
|
MaxNumSentences = 1;
|
|
RuleFars = "";
|
|
SilenceScale = 0.2F;
|
|
}
|
|
public OfflineTtsModelConfig Model;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string RuleFsts;
|
|
|
|
public int MaxNumSentences;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string RuleFars;
|
|
|
|
public float SilenceScale;
|
|
}
|
|
}
|