From a5a06217c17dc69aca53d1e247b7a6671d35373c Mon Sep 17 00:00:00 2001
From: manyeyes <32889020+manyeyes@users.noreply.github.com>
Date: 星期二, 23 七月 2024 14:41:00 +0800
Subject: [PATCH] Add support for SenseVoiceSmall onnx model in c# lib (#1946)
---
runtime/csharp/AliParaformerAsr/AliParaformerAsr/Model/FrontendConfEntity.cs | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/runtime/csharp/AliParaformerAsr/AliParaformerAsr/Model/FrontendConfEntity.cs b/runtime/csharp/AliParaformerAsr/AliParaformerAsr/Model/FrontendConfEntity.cs
index 4b0ca8e..d8c0021 100644
--- a/runtime/csharp/AliParaformerAsr/AliParaformerAsr/Model/FrontendConfEntity.cs
+++ b/runtime/csharp/AliParaformerAsr/AliParaformerAsr/Model/FrontendConfEntity.cs
@@ -1,11 +1,5 @@
锘�// See https://github.com/manyeyes for more information
// Copyright (c) 2023 by manyeyes
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
namespace AliParaformerAsr.Model
{
public class FrontendConfEntity
@@ -15,9 +9,10 @@
private int _n_mels = 80;
private int _frame_length = 25;
private int _frame_shift = 10;
- private float _dither = 0.0F;
+ private float _dither = 1.0F;
private int _lfr_m = 7;
private int _lfr_n = 6;
+ private bool _snip_edges = false;
public int fs { get => _fs; set => _fs = value; }
public string window { get => _window; set => _window = value; }
@@ -27,5 +22,6 @@
public float dither { get => _dither; set => _dither = value; }
public int lfr_m { get => _lfr_m; set => _lfr_m = value; }
public int lfr_n { get => _lfr_n; set => _lfr_n = value; }
+ public bool snip_edges { get => _snip_edges; set => _snip_edges = value; }
}
}
--
Gitblit v1.9.1