Fangjun Kuang
Committed by GitHub

Support the latest offline zipformer model (#180)

@@ -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