Committed by
GitHub
Support the latest offline zipformer model (#180)
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -67,7 +67,8 @@ std::unique_ptr<OfflineRecognizerImpl> OfflineRecognizerImpl::Create( | @@ -67,7 +67,8 @@ std::unique_ptr<OfflineRecognizerImpl> OfflineRecognizerImpl::Create( | ||
| 67 | } | 67 | } |
| 68 | std::string model_type(model_type_ptr.get()); | 68 | std::string model_type(model_type_ptr.get()); |
| 69 | 69 | ||
| 70 | - if (model_type == "conformer" || model_type == "zipformer") { | 70 | + if (model_type == "conformer" || model_type == "zipformer" || |
| 71 | + model_type == "zipformer2") { | ||
| 71 | return std::make_unique<OfflineRecognizerTransducerImpl>(config); | 72 | return std::make_unique<OfflineRecognizerTransducerImpl>(config); |
| 72 | } | 73 | } |
| 73 | 74 |
-
请 注册 或 登录 后发表评论