dialogflow / asr-server

FastCGI support for Kaldi ASR
Apache License 2.0
184 stars 86 forks source link

More Kaldi API changes? #31

Open mikenewman1 opened 6 years ago

mikenewman1 commented 6 years ago

I tried to switch in a new model (built with the latest Kaldi) and I hit this error

ERROR: FstImpl::ReadHeader: FST not of type vector: <unspecified>
ERROR (fcgi-nnet3-decoder[5.3.15~1-f14e]:ReadFstKaldi():kaldi-fst-io.cc:40) Could not read fst from HCLG.fst

[ Stack-Trace: ]

kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const*)
kaldi::MessageLogger::~MessageLogger()
fst::ReadFstKaldi(std::string)
apiai::Nnet3LatgenFasterDecoder::Initialize(kaldi::OptionsItf&)
apiai::FcgiDecodingApp::Run(int, char**)
main

I found this posting https://groups.google.com/forum/#!msg/kaldi-help/0SuCkeHyUmU/qIW-INChAAAJ in which Dan Povey suggested the fix I believe ReadFstKaldi() should now be ReadFstKaldiGeneric(), to allow reading const_fst. I made the change in Nnet3LatgenFasterDecoder.cc and this particular load error went away. But the recognition itself is trashed, which suggests to me that there is something else going on.

realill commented 6 years ago

Unfortunately this project is unable to keep up with all kaldi changes.

So we probably should reference "old" kaldi build that supported by this server or find maintainer who can keep up with all the changes.