Add Android APK for Korean (#1015)
This commit is contained in:
@@ -209,6 +209,27 @@ def get_models():
|
|||||||
|
|
||||||
ls -lh
|
ls -lh
|
||||||
|
|
||||||
|
popd
|
||||||
|
""",
|
||||||
|
),
|
||||||
|
Model(
|
||||||
|
model_name="sherpa-onnx-streaming-zipformer-korean-2024-06-16",
|
||||||
|
idx=14,
|
||||||
|
lang="ko",
|
||||||
|
short_name="zipformer",
|
||||||
|
cmd="""
|
||||||
|
pushd $model_name
|
||||||
|
rm -fv decoder-epoch-99-avg-1.int8.onnx
|
||||||
|
rm -fv encoder-epoch-99-avg-1.onnx
|
||||||
|
rm -fv joiner-epoch-99-avg-1.onnx
|
||||||
|
|
||||||
|
rm -fv bpe.model
|
||||||
|
rm -fv README.md
|
||||||
|
rm -fv .gitattributes
|
||||||
|
rm -rfv test_wavs
|
||||||
|
|
||||||
|
ls -lh
|
||||||
|
|
||||||
popd
|
popd
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ class OnlineRecognizerTransducerImpl : public OnlineRecognizerImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// reset encoder states
|
// reset encoder states
|
||||||
s->SetStates(model_->GetEncoderInitStates());
|
// s->SetStates(model_->GetEncoderInitStates());
|
||||||
|
|
||||||
// we keep the decoder_out
|
// we keep the decoder_out
|
||||||
decoder_->UpdateDecoderOut(&s->GetResult());
|
decoder_->UpdateDecoderOut(&s->GetResult());
|
||||||
|
|||||||
@@ -355,6 +355,19 @@ fun getModelConfig(type: Int): OnlineModelConfig? {
|
|||||||
tokens = "$modelDir/tokens.txt",
|
tokens = "$modelDir/tokens.txt",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
14 -> {
|
||||||
|
val modelDir = "sherpa-onnx-streaming-zipformer-korean-2024-06-16"
|
||||||
|
return OnlineModelConfig(
|
||||||
|
transducer = OnlineTransducerModelConfig(
|
||||||
|
encoder = "$modelDir/encoder-epoch-99-avg-1.int8.onnx",
|
||||||
|
decoder = "$modelDir/decoder-epoch-99-avg-1.onnx",
|
||||||
|
joiner = "$modelDir/joiner-epoch-99-avg-1.int8.onnx",
|
||||||
|
),
|
||||||
|
tokens = "$modelDir/tokens.txt",
|
||||||
|
modelType = "zipformer",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user