Add APK for small paraformer (#1133)

This commit is contained in:
Fangjun Kuang
2024-07-15 19:44:36 +08:00
committed by GitHub
parent b2c283fa2b
commit fa07bbc176
2 changed files with 34 additions and 0 deletions

View File

@@ -310,6 +310,17 @@ fun getOfflineModelConfig(type: Int): OfflineModelConfig? {
modelType = "transducer",
)
}
14 -> {
val modelDir = "sherpa-onnx-paraformer-zh-small-2024-03-09"
return OfflineModelConfig(
paraformer = OfflineParaformerModelConfig(
model = "$modelDir/model.int8.onnx",
),
tokens = "$modelDir/tokens.txt",
modelType = "paraformer",
)
}
}
return null
}