From 5a0e0b025c371c1d3e7c26712d07e348dbc8c6f5 Mon Sep 17 00:00:00 2001 From: zhouyang28 Date: Mon, 14 Mar 2022 10:37:31 +0800 Subject: [PATCH] add help info --- speechx/examples/decoder/offline_decoder_main.cc | 8 ++++---- speechx/speechx/frontend/raw_audio.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/speechx/examples/decoder/offline_decoder_main.cc b/speechx/examples/decoder/offline_decoder_main.cc index 344b09ac..cffca39a 100644 --- a/speechx/examples/decoder/offline_decoder_main.cc +++ b/speechx/examples/decoder/offline_decoder_main.cc @@ -23,10 +23,10 @@ #include "nnet/paddle_nnet.h" DEFINE_string(feature_respecifier, "", "test feature rspecifier"); -DEFINE_string(model_path, "avg_1.jit.pdmodel", "xxx.pdmodel"); -DEFINE_string(param_path, "avg_1.jit.pdiparams", "xxx.pdiparams"); -DEFINE_string(dict_file, "vocab.txt", "xxx.pdmodel"); -DEFINE_string(lm_path, "lm.klm", "xxx.pdiparams"); +DEFINE_string(model_path, "avg_1.jit.pdmodel", "paddle nnet model"); +DEFINE_string(param_path, "avg_1.jit.pdiparams", "paddle nnet model param"); +DEFINE_string(dict_file, "vocab.txt", "vocabulary of lm"); +DEFINE_string(lm_path, "lm.klm", "language model"); using kaldi::BaseFloat; diff --git a/speechx/speechx/frontend/raw_audio.h b/speechx/speechx/frontend/raw_audio.h index b55f717d..1a326b3c 100644 --- a/speechx/speechx/frontend/raw_audio.h +++ b/speechx/speechx/frontend/raw_audio.h @@ -26,7 +26,7 @@ class RawAudioCache : public FeatureExtractorInterface { public: explicit RawAudioCache(int buffer_size = kint16max); virtual void Accept(const kaldi::VectorBase& waves); - virtual bool Read(kaldi::Vector* feat); + virtual bool Read(kaldi::Vector* waves); // the audio dim is 1 virtual size_t Dim() const { return 1; } virtual void SetFinished() { @@ -76,4 +76,4 @@ class RawDataCache : public FeatureExtractorInterface { DISALLOW_COPY_AND_ASSIGN(RawDataCache); }; -} // namespace ppspeech \ No newline at end of file +} // namespace ppspeech