Coder Social home page Coder Social logo

kaldi2htk's Introduction

Simple Kaldi to HTK GMM/HMM model converting script

Requirements

  1. Compiled Kaldi (kaldi-asr.org)
  2. python

Compilation

  1. Check your KALDI path in Makefile
  2. make binaries with make

Usage

python kaldi2HTKmodel.py <model.mdl> <phones.txt> <tree> <outputHTKmodel> <outputTiedlist>

Note: script kaldi2AP.py is modification of kaldi2HTK.py suited for our decoder

Licence

Implemented by Daniel Soutner, NTIS - New Technologie for the Information Society, University of West Bohemia, Plzen, Czech rep. [email protected], 2016.

Licensed under the 3-clause BSD.

kaldi2htk's People

Contributors

dansoutner avatar giampierosalvi avatar

Stargazers

QIU Shuo avatar  avatar Rishikesh (ऋषिकेश) avatar mega avatar Tim Lee avatar Kazuhiro KOBAYASHI avatar Tomoki Hayashi avatar Mietta Lennes avatar water-xt avatar Yusuke Yamada avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

kaldi2htk's Issues

compilation error with latest kaldi version

Hi,
I get the following error running make (I cloned and built the latest version of kaldi on 2023-05-25).

c++ -std=c++14 -I.. -isystem /home/giampi/Documents/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_MKL -I/opt/intel/mkl/include -m64 -msse -msse2 -pthread -g -fPIC -Wno-sign-compare -I/home/giampi/Documents/kaldi/src  -Wl,-rpath=/home/giampi/Documents/kaldi/tools/openfst-1.7.2/lib -rdynamic  -Wl,-rpath=/home/giampi/Documents/kaldi/src/lib  context-to-pdf.cc   /home/giampi/Documents/kaldi/src/lm/libkaldi-lm.so  /home/giampi/Documents/kaldi/src/decoder/libkaldi-decoder.so  /home/giampi/Documents/kaldi/src/lat/libkaldi-lat.so  /home/giampi/Documents/kaldi/src/hmm/libkaldi-hmm.so  /home/giampi/Documents/kaldi/src/transform/libkaldi-transform.so  /home/giampi/Documents/kaldi/src/gmm/libkaldi-gmm.so  /home/giampi/Documents/kaldi/src/tree/libkaldi-tree.so  /home/giampi/Documents/kaldi/src/matrix/libkaldi-matrix.so  /home/giampi/Documents/kaldi/src/util/libkaldi-util.so  /home/giampi/Documents/kaldi/src/base/libkaldi-base.so  /home/giampi/Documents/kaldi/src/hmm/libkaldi-hmm.so  /home/giampi/Documents/kaldi/src/fstext/libkaldi-fstext.so /home/giampi/Documents/kaldi/tools/openfst-1.7.2/lib/libfst.so -L/opt/intel/mkl/lib/intel64 -Wl,-rpath=/opt/intel/mkl/lib/intel64 -l:libmkl_intel_lp64.so -l:libmkl_core.so -l:libmkl_sequential.so -ldl -lpthread -lm -lm -lpthread -ldl -o context-to-pdf
context-to-pdf.cc: In function ‘int main(int, char**)’:
context-to-pdf.cc:76:9: error: ‘ContextDependency’ was not declared in this scope
   76 |         ContextDependency ctx_dep;
      |         ^~~~~~~~~~~~~~~~~
context-to-pdf.cc:77:40: error: ‘ctx_dep’ was not declared in this scope
   77 |         ReadKaldiObject(po.GetArg(2), &ctx_dep);
      |                                        ^~~~~~~
make: *** [<builtin>: context-to-pdf] Error 1

Any hints on how to fix this?

Can not "make" in the latest version of kaldi

I tried to make with latest version of kaldi.
But I got warning message below.

make -C /home/user/tools/kaldi/src//thread kaldi-thread.a
make[1]: *** /home/user/tools/kaldi/src//thread: そのようなファイルやディレクトリはありません. 中止.
/home/user/tools/kaldi/src//makefiles/default_rules.mk:61: recipe for target '/home/user/tools/kaldi/src//thread/kaldi-thread.a' failed
make: *** [/home/user/tools/kaldi/src//thread/kaldi-thread.a] Error 2

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.