From 9caa48801907362b2e9a7e33a6c699c7201267e2 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 4 Aug 2024 19:02:23 +0800 Subject: [PATCH] Fix setting SenseVoice language. (#1214) --- sherpa-onnx/csrc/offline-sense-voice-model.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sherpa-onnx/csrc/offline-sense-voice-model.cc b/sherpa-onnx/csrc/offline-sense-voice-model.cc index 2280a9be5..1d2a14ef5 100644 --- a/sherpa-onnx/csrc/offline-sense-voice-model.cc +++ b/sherpa-onnx/csrc/offline-sense-voice-model.cc @@ -100,8 +100,8 @@ class OfflineSenseVoiceModel::Impl { SHERPA_ONNX_READ_META_DATA(lang_yue, "lang_yue"); meta_data_.lang2id = { - {"auto", lang_auto}, {"zh", lang_zh}, {"ja", lang_ja}, - {"ko", lang_ko}, {"yue", lang_yue}, + {"auto", lang_auto}, {"zh", lang_zh}, {"en", lang_en}, + {"ja", lang_ja}, {"ko", lang_ko}, {"yue", lang_yue}, }; SHERPA_ONNX_READ_META_DATA_VEC_FLOAT(meta_data_.neg_mean, "neg_mean");