Coder Social home page Coder Social logo

node-kaldi-online-nnet3-decoder's People

Contributors

dependabot[bot] avatar mathquis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-kaldi-online-nnet3-decoder's Issues

connot find libfst.so.10

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.

Kaldi.OnlineNNet3Model options

const m = new Kaldi.OnlineNNet3Model({

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.