alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 342 forks source link

Unknown component type TdnnComponent #177

Closed hcnoh closed 5 years ago

hcnoh commented 5 years ago

I want to decode with my customed Kaldi nnet3 model. The yaml file configures are like below.

decoder:
    use-threaded-decoder: true
    model : /opt/models/tdnn1a_sp_online/final.mdl
    word-syms : /opt/models/tree_a/graph_tgsmall/words.txt
    fst : /opt/models/tree_a/graph_tgsmall/HCLG.fst
    mfcc-config : /opt/models/tdnn1a_sp_online/conf/mfcc.conf
    ivector-extraction-config : /opt/models/tdnn1a_sp_online/conf/ivector_extractor.conf
    min-active: 200
    max-active: 7000
    beam: 15.0
    lattice-beam: 6.0
    acoustic-scale: 1.0
    do-endpointing : false
    endpoint-silence-phones : "1:2:3:4:5:6:7:8:9:10"
    traceback-period-in-secs: 0.25
    chunk-length-in-secs: 0.25
    frame-subsampling-factor: 3
    num-nbest: 1
    nnet-mode: 3

And if I run python script "client.py" with the option "-r 32000", I always get the following error message.

ERROR ([5.4.176~1-be967]:ReadNew():nnet-component-itf.cc:86) Unknown component type TdnnComponent

[ Stack-Trace: ]
kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const*)
kaldi::MessageLogger::~MessageLogger()
kaldi::nnet3::Component::ReadNew(std::istream&, bool)
kaldi::nnet3::Nnet::Read(std::istream&, bool)
kaldi::nnet3::AmNnetSimple::Read(std::istream&, bool)

What is the reason for this error?