Giter Site home page Giter Site logo

kaldi-io's Introduction

KALDI-IO lib

Kaldi c++ IO lib (static and dynamic).

It can be used as "kaldi I/O C++ API". Using this library, ".ark,.scp" formats can be read and write, and kaldi::[Matrix|Vector|..] is available.

Compile

  • requirements:
    • cmake >= 3.0
    • one of blas math lib:
      • mkl (recommended)
        • install conda, and use it to install mkl: conda install mkl (mkl is installed with conda by default)
        • when cmake, conda should be in your path
      • atlas
        • ubuntu: sudo apt-get install libatlas3-base
        • when cmake, it maynot find your atlas automatically, thus you need set the math lib path as in "#About" below.
      • Accelerate framework (need do nothing for "macOS/Darwin")
      • ...
cd kaldi-io
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=.. .. # set install prefix as '../kaldi-io'
make
make install 

Results:

  • kaldi-io/lib:
    • libkaldi_io_static.a
    • libkaldi_io_shared.so
  • kaldi-io/include:
    • kaldi-io.h (the one big header, can be modified by need)
    • sub header dirs...

Usage

  • Include the header dir and link the lib

About

  • The math dependency is solved automatically from system path, by cmake find_package(cmake/Modules/FindBLAS.cmake)

    • MKL/ATLAS/Accelerate(osx) is prefered
    • if you want to set specific math lib:
    # make sure build dir is clean
    cmake -DBLAS_VENDORS=[ATLAS|MKL|OPEN|..] ..
    # additioinally, custom math lib search path can be set, for example:
    cmake -DBLAS_VENDORS=ATLAS -DBLAS_ATLAS_LIB_DIRS=.../atlas/build/lib ..
    cmake -DBLAS_VENDORS=MKL -DBLAS_MKL_LIB_DIRS=/opt/intel/mkl/lib/intel64 ..

kaldi-io's People

Contributors

megazone87 avatar

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.