Puneet Kalra

Puneet Kalra is certified java programmer, can work on/develop web and desktop Rich Interactive Applications! based on J2SE, J2EE, PHP, ASP, MySQL, AJAX, and RMI. Currently working at MBN Informatics as Java Programmer and Guest Java Faculty at NIIT Centre.

Puneet Kalra - Sun Certified Java Programmer
W
O
R
K

Java Programmer

@ MBN Informatics

Guest Faculty

@ NIIT Centre

Freelancer

@ World Wide Web

NEED A PROJECT DONE ?

CANT UNDERSTAND CODE LOGIC ?

NEED HELP?

STUCK SOMEWHERE ?

NEED HELP WITH ASSIGNMENTS ?

Sphinx 4.0

Java Speech API

Pwing

JFC Swing Toolkit

and more

FREETTS, JMF, TELEPHONY, etc.

A
P
I
5 Jan
2010

Expanding Dictionary Of Acoustic Model

Hello Everyone,

Today I’m going to tell you how to expand dictionary of acoustic model for Sphinx4. In simple words, This tutorial will tell you how you can add more words in Sphinx’s words database (Dictionary) and let it recognize those words, which are not available in default acoustic models provided by CMU Sphinx. This tutorial is based on “HelloWorld” example provided by CMU Sphinx.

Important Files in this example :
1 ) HelloWorld.java
2) hello.gram
3) helloworld.config.xml

Acoustic Model used in this example :
WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar

Lets say, We are creating a SR system for ABC National airlines. Everything will go fine and Sphinx will recognize most of the words except the name of cities and states of India.  Now, I will tell you, How to add name of cities and states in dictionary.

PART ONE
Step 1 :
Create a txt file “words.txt”, Write all the names of cities and states in it and save.
Step 2 : Open this link : http://www.speech.cs.cmu.edu/tools/lmtool.html
Step 3 : On that page, go to “Sentence corpus file:” section, Browse to “words.txt” file and click “Compile Knowledge Base”.
Step 4 : On next page, Click on “Dictionary” link and save that .DIC file.

PART TWO
Step 1 : Extract WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar file.
Step 2 : Go to edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz\dict folder.
Step 3 : Open “cmudict.0.6d” file in that folder.
Step 4 : Copy data from .DIC file, you have downloaded in PART ONE, paste it in “cmudict.0.6d” file and save.
Step 5 : Zip the extracted hierarchy back as it was and Zip file named should be same as JAR file.

Now, remove “WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar” file from Project’s CLASSPATH and add “WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.zip” instead of it.

That’s it ! We are done.  Now Sphinx will also recognize all name of cities and states that we wrote in “words.txt” file.
Now, FAQ time. I will be posting FAQ and few important notes in comments. :)

If you have any quires, Please feel free to ask.
Regards,

25 Dec
2009

Happy Holidays

Hello All,

Wishing you all a Merry Christmas And a very Happy New Year in advance.
May this new year bring all the happiness to your life and fulfill all your wishes.

And a small update now, This was the busiest month of the year. I’m done with my 2 year diploma course (ANIIT).  All exams went great. Now just waiting for certificate.

Now, I’m thinking to move to some bigger city where i can explore my knowledge.

Hope the new year will be great for all of us.

Regards,

24 Nov
2009

I’m still alive

Hello everyone,

It’s been almost a month, I haven’t updated my website.  Just 3 weeks left to my final exams for 2 years technical diploma (ANIIT) from NIIT.  And i will have to attend 2 exams ( EJB 3.0, and Software Testing / Quality Assurance ) plus I will have to submit a project before i can attend those exams.  My topic for project is “Image processing”. I’m not really worried about exams and project. Project is almost done. :)

My current research topics :
Computational linguistics , and Continuous Speech Recognition Algorithms

Now a days, I’m working with Spain based company named <UNDEFINED> is Official Adobe’s Enterprise Solution Partner. They have a long list of technologies for developing Desktop and Web based RIA’s but they mainly work on : Adobe Flex, Adobe AIR, Adobe Flash With PHP and Java.  Company’s Website

That’s it for now ! Signing off.

Puneet Kalra

30 Oct
2009

Sphinx 4.0 Video Tutorial ( High Quality )

Hello,

Here’s the same video tutorial but with higher video quality. For more info about the tutorial, please check the original post here.

Download Sphinx 4.0 Video Tutorial

File Details :

Name : Sphinx-Tutorial.avi
Size : 334 MBs
Duration : 26:14 Minutes
Dimensions : 1280 x 800

25 Oct
2009

Sphinx 4.0 Framework

Sphinx 4.0 Framework
This image describes the framework components and working of Sphinx 4.0

Stay tuned!

20 Oct
2009

October Update

Hey everyone,

First of all, Wishing you a very Happy Diwali. :D

Just to let you all know that I’m still alive. The first reason that kept me away from updating my blog was Text-to-Speech ( FreeTTS ) and Speech-to-Text ( Sphinx ). I have got really great response from my followers and guests. I have created few sample applications on both of them.

And, the second reason is Exams. The next and the final one for this session is Java Servlet, JSP And Apache Struts on 24th of this month. I’m not really worried about the exam, right now my focus is on SphinxTrain and SphinxDecoder.

That’s it for now, I will be updating again soon.

4 Oct
2009

Finally FreeTTS Worked :)

Hello everyone!

After long long research on Speech Synthesizer and working on projects based on Speech Recognizer.  Finally I made FreeTTS work using Eclipse SDK. I have tested it on Windows XP, Vista and Mac, Working fine on all the Operating systems. I found it little confusing but once you start working on something, Everything starts to solve out one by one.

About FreeTTS :

FreeTTS is a speech synthesis engine written entirely in the Java(tm) programming language. FreeTTS was written by the Sun Microsystems Laboratories Speech Team and is based on CMU’s Flite engine. FreeTTS also includes a partial JSAPI 1.0

Link To FreeTTS Website

Soon, I will be posting a “FreeTTS with Eclipse” tutorial.

So , Stay tuned!

29 Sep
2009

Image processing in PHP

Hello All,

Here’s a simple PHP code to convert an image into Black and White Or Negative Or any other color combination.

Demo :
Demo_Image

Click here to see the code

Enjoy!