Code Monkey home page Code Monkey logo

phoneme_ctc's Introduction

Phoneme Recognition using CTC

Tensorflow implementation of Phoneme Recognition using Connectionist Temporal Classification. http://www.cs.toronto.edu/~graves/icml_2006.pdf. The model is created by bidirectional dynamic rnn with three stacked lstms in each direction.

Preprocessing

First, transform the Nist wav file in TIMIT dataset to normal wav file. I use the scikits.audiolab to finish this task. python phoneme_ctc.py transform -n train_dir -t test_dir -o out_dir

Train

I extract the mfcc features using the module python_speech_features. The dimension of feature is 39 and there are 39 classes for output phoneme labels. The work flow is: extracted features from wav audio -> network -> phoneme labels. After 100 epoches, which costs me 4 days using NVIDIA1070 GPU, the cost decrease from 120 to 40 and the label error rate from 90% to 30%.

python phoneme_ctc.py train -n processed_train_dir -t processed_test_dir -o checkpoint_dir

Decode

python phoneme_ctc.py decode -m checkpoint_dir. Then you can provide a wav audio file and the model will output the phoneme labels. Notce: the wav file should be 1 channel, 16 bits and bitrate 16000. I record the wav file using sox on my mac. e.g. sox -d -b 16 -c 1 -r 16000 helloworld.wav

I provide a trained model, you can test the model using python phoneme_ctc.py decode -m model.

Dependencies

python 2.7 brew install libsndfile pip install -r requirements.txt

phoneme_ctc's People

Contributors

tbornt 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.