Giter Club home page Giter Club logo

kaldi_s2s's Introduction

kaldi_s2s

This is a program of a seq2seq language model using Tensorflow and Keras.
Input : Phoneme posterior vector extracted by Kaldi(A toolkit of automatic speech recognition).
Output : Intended text

Description

ASR (Automatic speech recognition) is one of the hottest study area, and many kind of approach has been proposed for a long time.
A basic model of ASR is a combination of acostic model and language model.
This program is a language model using seq2seq encoder-decoder, which converts a frame sequence of phoneme posterior vector into an intended text.

Usage

Install

Clone this repository to your computer.

git clone https://github.com/inoue0124/kaldi_s2s.git
cd kaldi_s2s

Preparation of training data

It is necessary to place the phoneme posterior vector data in text format in the data directory.
Please calculate phoneme posterior by decoding speech files with kaldi.
It is assumed that one utterance is stored in one file.

Run

At first, rewirte the number of data, epoch, batch size (Written in keras_seq2seq.py)
Then, execute a below command,

python keras_seq2seq.py {data_name} train

A log directory will be made and various files will be created in it.
if you want to check a learning history on tensorboard, do the command like

tensorboard --logdir=./log/{time_stamp}

and access here http://127.0.0.1:6006/.

Prediction with learned weights

After learning, you can test the predicition by doing this

python keras_seq2seq.py {data_name} test {log_dir_name}

Here, log_dir_name has been named when learning phase.

Reference

kaldi_s2s's People

Contributors

inoue0124 avatar

Watchers

James Cloos 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.