From d8b8ec9af9d1f8c8b0ec64853b91fb9a352992ee Mon Sep 17 00:00:00 2001 From: YangZhou Date: Wed, 18 Jan 2023 15:58:49 +0800 Subject: [PATCH] fix --- speechx/speechx/asr/nnet/u2_nnet_thread_main.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/speechx/speechx/asr/nnet/u2_nnet_thread_main.cc b/speechx/speechx/asr/nnet/u2_nnet_thread_main.cc index 9ea5b86df..ce523e599 100644 --- a/speechx/speechx/asr/nnet/u2_nnet_thread_main.cc +++ b/speechx/speechx/asr/nnet/u2_nnet_thread_main.cc @@ -60,8 +60,10 @@ int main(int argc, char* argv[]) { feature_opts.assembler_opts.fill_zero = false; std::shared_ptr nnet(new ppspeech::U2Nnet(model_opts)); - std::shared_ptr raw_data(new ppspeech::FeaturePipeline(feature_opts)); - std::shared_ptr nnet_producer(new ppspeech::NnetProducer(nnet, raw_data)); + std::shared_ptr feature_pipeline( + new ppspeech::FeaturePipeline(feature_opts)); + std::shared_ptr nnet_producer( + new ppspeech::NnetProducer(nnet, feature_pipeline)); kaldi::Timer timer; float tot_wav_duration = 0;