sunyanqing / kaldi-audio-server

An Audio Server based on Kaldi
Apache License 2.0
5 stars 4 forks source link

audio-server-online2-nnet3 ERROR (audio-server-online2-nnet3[5.2.79~2-ff2ad]:GetNextPack():online-tcp-source.cc:77) TCPVectorSource: Pack size must be even! #3

Open lufeng0614 opened 7 years ago

lufeng0614 commented 7 years ago

你好,在用audio-server-online2-nnet3 解码时,按照readme上的调用方式localhost:5010/'scp:data/wav/wav.scp' 报 如下错误

LOG (audio-server-online2-nnet3[5.2.79~2-ff2ad]:Collapse():nnet-utils.cc:770) Added 10 components, removed 19 LOG (audio-server-online2-nnet3[5.2.79~2-ff2ad]:CompileLooped():nnet-compile-looped.cc:336) Spent 0.0438321 seconds in looped compilation. LOG (audio-server-online2-nnet3[5.2.79~2-ff2ad]:CompileLooped():nnet-compile-looped.cc:336) Spent 0.0702772 seconds in looped compilation. LOG (audio-server-online2-nnet3[5.2.79~2-ff2ad]:CompileLooped():nnet-compile-looped.cc:336) Spent 0.043834 seconds in looped compilation. ERROR (audio-server-online2-nnet3[5.2.79~2-ff2ad]:GetNextPack():online-tcp-source.cc:77) TCPVectorSource: Pack size must be even!

[ Stack-Trace: ] audio-server-online2-nnet3() [0x10f3674] kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const) kaldi::MessageLogger::~MessageLogger() kaldi::OnlineTcpVectorSource::GetNextPack() kaldi::OnlineTcpVectorSource::FillFrame(int) kaldi::OnlineTcpVectorSource::Read(kaldi::Vector) kaldi::DecoderPool::ThreadProc(void*)

clone

terminate called after throwing an instance of 'std::runtime_error' what():
./audio_server_example_nnet2.sh: line 23: 20818 Aborted (core dumped) audio-server-online2-nnet3

请问这是什么原因呢?

sunyanqing commented 6 years ago

This case seems to be very abnormal. It seems that this issue is due to a corrupt wave file (normal package size should be even). Please check that.