Add Kotlin and Java API for FireRedAsr AED model (#1870)

This commit is contained in:
Fangjun Kuang
2025-02-17 10:50:25 +08:00
committed by GitHub
parent 316424b382
commit d148860d2c
10 changed files with 188 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
package com.k2fsa.sherpa.onnx
fun main() {
val types = arrayOf(0, 2, 5, 6, 15, 21)
val types = arrayOf(0, 2, 5, 6, 15, 21, 24)
for (type in types) {
test(type)
}
@@ -17,6 +17,7 @@ fun test(type: Int) {
6 -> "./sherpa-onnx-nemo-ctc-en-citrinet-512/test_wavs/8k.wav"
15 -> "./sherpa-onnx-sense-voice-zh-en-ja-ko-yue-2024-07-17/test_wavs/zh.wav"
21 -> "./sherpa-onnx-moonshine-tiny-en-int8/test_wavs/0.wav"
24 -> "./sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16/test_wavs/0.wav"
else -> null
}