• 此项目
    • 正在载入...
  • Sign in

xuning / sherpaonnx

96x96
转到一个项目
Toggle navigation
  • 项目
  • 群组
  • 代码片段
  • 帮助
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • sherpaonnx
  • dotnet-examples
  • TTS
  • Struct
  • SherpaOnnxOfflineTtsConfig.cs
  • Fixed the C api calls and created the TTS project file (#1324) · b409b0a9 ...
    b409b0a9 浏览文件
    Co-authored-by: Michael Twohey <mtwohey@americanambulance.com>
    Michael Twohey authored 2024-09-07 23:25:02 +0800
SherpaOnnxOfflineTtsConfig.cs 427 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System.Runtime.InteropServices;

namespace TTS.Struct
{
    [StructLayout(LayoutKind.Sequential)]
    public struct SherpaOnnxOfflineTtsConfig
    {
        public SherpaOnnxOfflineTtsModelConfig model;

        [MarshalAs(UnmanagedType.LPStr)]
        public string rule_fsts;

        public int max_num_sentences;

        [MarshalAs(UnmanagedType.LPStr)]
        public string rule_fars;
    }
}