• 此项目
    • 正在载入...
  • 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
  • scripts
  • dotnet
  • OfflineWenetCtcModelConfig.cs
  • Add various languge bindings for Wenet non-streaming CTC models (#2584) · 7e42ba2c ...
    7e42ba2c 浏览文件
    This PR adds support for Wenet non-streaming CTC models to sherpa-onnx by introducing the SherpaOnnxOfflineWenetCtcModelConfig struct and integrating it across all language bindings and APIs. The implementation follows the same pattern as other CTC model types like Zipformer CTC.
    
    - Introduces SherpaOnnxOfflineWenetCtcModelConfig struct with a single model field for the ONNX model path
    - Adds the new config to SherpaOnnxOfflineModelConfig and updates all language bindings (C++, Pascal, Kotlin, Java, Go, C#, Swift, JavaScript, etc.)
    - Provides comprehensive examples and tests across all supported platforms and languages
    Fangjun Kuang authored 2025-09-10 18:52:18 +0800
OfflineWenetCtcModelConfig.cs 392 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/// Copyright (c)  2025  Xiaomi Corporation (authors: Fangjun Kuang)

using System.Runtime.InteropServices;

namespace SherpaOnnx
{

    [StructLayout(LayoutKind.Sequential)]
    public struct OfflineWenetCtcModelConfig
    {
        public OfflineWenetCtcModelConfig()
        {
            Model = "";
        }
        [MarshalAs(UnmanagedType.LPStr)]
        public string Model;
    }
}