Fix model_type for jni, c# and iOS. (#216)

This commit is contained in:
Fangjun Kuang
2023-07-14 22:24:38 +08:00
committed by GitHub
parent 5a6b55c5a7
commit de2673680e
7 changed files with 38 additions and 8 deletions

View File

@@ -26,6 +26,7 @@ namespace SherpaOnnx
NumThreads = 1;
Provider = "cpu";
Debug = 0;
ModelType = "";
}
[MarshalAs(UnmanagedType.LPStr)]
public string Encoder;
@@ -47,6 +48,9 @@ namespace SherpaOnnx
/// true to print debug information of the model
public int Debug;
[MarshalAs(UnmanagedType.LPStr)]
public string ModelType;
}
/// It expects 16 kHz 16-bit single channel wave format.