diff --git a/speechx/examples/decoder/offline_decoder_main.cc b/speechx/examples/decoder/offline_decoder_main.cc index 344b09acdf8596476dfc169bede3c9b7a35f3c84..cffca39a6ebcb6584bcaad6f0116d3bdfea05a74 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 b55f717d9ffca643377fa88f75bf947717bab104..1a326b3cf70270bbb013e414aa63ca8cb61b0701 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