Add two-pass ASR Android APKs for Moonshine models. (#1499)

This commit is contained in:
Fangjun Kuang
2024-10-31 17:54:16 +08:00
committed by GitHub
parent 9fa3bc40d7
commit a3c89aa0d8
4 changed files with 68 additions and 2 deletions

View File

@@ -438,6 +438,19 @@ fun getOfflineModelConfig(type: Int): OfflineModelConfig? {
tokens = "$modelDir/tokens.txt",
)
}
22 -> {
val modelDir = "sherpa-onnx-moonshine-base-en-int8"
return OfflineModelConfig(
moonshine = OfflineMoonshineModelConfig(
preprocessor = "$modelDir/preprocess.onnx",
encoder = "$modelDir/encode.int8.onnx",
uncachedDecoder = "$modelDir/uncached_decode.int8.onnx",
cachedDecoder = "$modelDir/cached_decode.int8.onnx",
),
tokens = "$modelDir/tokens.txt",
)
}
}
return null
}