From a7105ca3e7e177b80bc23967e25b7f80ba046137 Mon Sep 17 00:00:00 2001 From: Yang Zhou Date: Tue, 19 Apr 2022 21:03:24 +0800 Subject: [PATCH] fix ctc prefix beam binary --- .../ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc b/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc index 21afec27..e145f6ee 100644 --- a/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc +++ b/speechx/examples/ds2_ol/decoder/ctc-prefix-beam-search-decoder-ol.cc @@ -50,6 +50,9 @@ int main(int argc, char* argv[]) { gflags::ParseCommandLineFlags(&argc, &argv, false); google::InitGoogleLogging(argv[0]); + CHECK(FLAGS_result_wspecifier != ""); + CHECK(FLAGS_feature_rspecifier != ""); + kaldi::SequentialBaseFloatMatrixReader feature_reader( FLAGS_feature_rspecifier); kaldi::TokenWriter result_writer(FLAGS_result_wspecifier);