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

@@ -36,7 +36,8 @@ func sherpaOnnxOnlineTransducerModelConfig(
tokens: String,
numThreads: Int = 2,
provider: String = "cpu",
debug: Int = 0
debug: Int = 0,
modelType: String = ""
) -> SherpaOnnxOnlineTransducerModelConfig {
return SherpaOnnxOnlineTransducerModelConfig(
encoder: toCPointer(encoder),
@@ -45,7 +46,8 @@ func sherpaOnnxOnlineTransducerModelConfig(
tokens: toCPointer(tokens),
num_threads: Int32(numThreads),
provider: toCPointer(provider),
debug: Int32(debug)
debug: Int32(debug),
model_type: toCPointer(modelType)
)
}