Fix building for .Net (#463)

This commit is contained in:
Fangjun Kuang
2023-12-04 19:27:55 +08:00
committed by GitHub
parent 73afa0248b
commit 3b90e85ef2
10 changed files with 341 additions and 150 deletions

View File

@@ -138,6 +138,8 @@ namespace SherpaOnnx
DecodingMethod = "greedy_search";
MaxActivePaths = 4;
HotwordsFile = "";
HotwordsScore = 1.5F;
}
public FeatureConfig FeatConfig;
@@ -148,6 +150,11 @@ namespace SherpaOnnx
public string DecodingMethod;
public int MaxActivePaths;
[MarshalAs(UnmanagedType.LPStr)]
public string HotwordsFile;
public float HotwordsScore;
}
public class OfflineRecognizerResult