mathquis / node-kaldi-online-nnet3-decoder Goto Github PK
View Code? Open in Web Editor NEWASR online decoding using Kaldi NNet3 GrammarFST
ASR online decoding using Kaldi NNet3 GrammarFST
internal/modules/cjs/loader.js:1021
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: libfst.so.10: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1021:18)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/classiii/Downloads/node-kaldi-online-nnet3-decoder-master/lib/index.js:4:20)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
Hi! Thanks for answering me at kaldi-node.
I have changed the path in the binding.gyp. As followed:
{
"targets": [
{
"target_name": "kaldi",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [
"./src/nnet3.cpp"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"/home/classiii/kaldi/src",
"/home/classiii/kaldi/tools/openfst-1.6.7/include"
],
"ldflags": [
"-rdynamic",
"-ldl",
"-lm",
"-lpthread"
],
"cflags_cc": [
"-std=c++11",
"-Wall",
"-Wno-sign-compare",
"-Wno-unused-local-typedefs",
"-Wno-deprecated-declarations",
"-Winit-self",
"-DKALDI_DOUBLEPRECISION=0",
"-DHAVE_EXECINFO_H=1",
"-DHAVE_CXXABI_H",
"-DHAVE_ATLAS",
"-m64",
"-msse",
"-msse2",
"-pthread",
"-g",
"-fPIC",
"-frtti"
],
"library_dirs": [
"/usr/lib",
"/home/classiii/kaldi/tools/openfst-1.6.7/lib",
"/home/classiii/kaldi/src/base",
"/home/classiii/kaldi/src/chain",
"/home/classiii/kaldi/src/cudamatrix",
"/home/classiii/kaldi/src/decoder",
"/home/classiii/kaldi/src/feat",
"/home/classiii/kaldi/src/fstext",
"/home/classiii/kaldi/src/gmm",
"/home/classiii/kaldi/src/hmm",
"/home/classiii/kaldi/src/ivector",
"/home/classiii/kaldi/src/lat",
"/home/classiii/kaldi/src/lm",
"/home/classiii/kaldi/src/matrix",
"/home/classiii/kaldi/src/nnet2",
"/home/classiii/kaldi/src/nnet3",
"/home/classiii/kaldi/src/online2",
"/home/classiii/kaldi/src/transform",
"/home/classiii/kaldi/src/tree",
"/home/classiii/kaldi/src/util"
],
"libraries": [
"-latlas",
"-lfst",
"-lkaldi-online2",
"-lkaldi-ivector",
"-lkaldi-nnet3",
"-lkaldi-chain",
"-lkaldi-nnet2",
"-lkaldi-cudamatrix",
"-lkaldi-decoder",
"-lkaldi-lat",
"-lkaldi-fstext",
"-lkaldi-hmm",
"-lkaldi-feat",
"-lkaldi-transform",
"-lkaldi-gmm",
"-lkaldi-tree",
"-lkaldi-util",
"-lkaldi-matrix",
"-lkaldi-base",
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
}
]
}
There are not any errors when in "npm install".
I also can find libfst.so.10 in the path of "openfst-1.6.7/lib"
I dont know where I setting wrong, can you help me solve that?
thank you so much.
here my outpue tree in resources dir
.
├── am
│ └── final.mdl
├── conf
│ ├── mfcc.conf
│ └── model.conf
├── graph
│ ├── disambig_tid.int
│ ├── Gr.fst
│ ├── HCLr.fst
│ └── phones
│ └── word_boundary.int
├── ivector
│ ├── final.dubm
│ ├── final.ie
│ ├── final.mat
│ ├── global_cmvn.stats
│ ├── online_cmvn.conf
│ └── splice.conf
└── README
how to properly map it to Kaldi.OnlineNNet3Model options?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.