GithubHelp home page GithubHelp logo

hkbu-victor / exkaldi-rt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangyu09/exkaldi-rt

0.0 0.0 0.0 3.12 MB

An online speech recognition extension toolkit of Kaldi

License: Apache License 2.0

Makefile 38.06% C++ 7.35% Python 54.44% Shell 0.14%

exkaldi-rt's Introduction

ExKaldi-RT: An Online Speech Recognition Extension Toolkit of Kaldi

exkaldi-rt

ExKaldi-RT is an online ASR toolkit for Python language. It based on Kaldi's LatticeFasterDecoder.

ExKaldi-RT has these features:

  1. Easy to build an online ASR pipeline with Python.

  2. Use DNN acoustic model trained with DL framesworks, such as TensorFlow and PyTorch.

  3. Easy to custimize original functions for, such as voice activity detection (VAD) and denoising.

  4. Support network transmission.

We tested our toolkit using Kaldi version 5.5, commit acff3f65640715f22252f143df7c3e1997899163 .

Update

In branch V1.2, we are improving ExKaldi-RT from the following aspects:

  1. Instead of subprocess in Python, use Pybind to build the interface with C++ library.

  2. Instead of mutiple threads, use mutiple processes to drive each components.

  3. Improve the Packet to carry more infomation not only the data.

  4. It is able to connect components parallelly to perform multiple tasks.

Installation

If you plan to use ExKaldi-RT on the server, please make sure that Kaldi has been installed and compiled successfully before installing ExKaldi-RT. Then follow the steps below to install ExKaldi-RT package.

  1. Clone ExKaldi-RT repository.
git clone https://github.com/wangyu09/exkaldi-rt.git
  1. Copy these directories into Kaldi source folder.
cp -r exkaldi-rt/exkaldirtc $KALDI_ROOT/src/
cp -r exkaldi-rt/exkaldirtcbin $KALDI_ROOT/src/
  1. Go to source directories and compile C++ source programs.
export EXKALDIRTROOT=`pwd`

cd $KALDI_ROOT/src/exkaldirtc
make depend
make
cd $KALDI_ROOT/src/exkaldirtcbin
make depend
make
  1. Go back to exkaldi-rt derectory and install ExKaldi-RT Python package.
cd $EXKALDIRTROOT
sudo apt-get install libjack-jackd2-dev portaudio19-dev libportaudio2
bash quick_install.sh
  1. Check.
python -c "import exkaldirt"

exkaldi-rt's People

Contributors

luvwinnie avatar wangyu09 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.