"I Think, I Conceptualize, I Analyze, I Design, and I Create." ~ Puneet Kalra

Cognitive Robotics Research Centre Of University Of Wales, Newport Puneet Kalra

Home Studies Research Projects Tutorials Portfolio

Puneet Kalra - www.puneetk.com - Socializing Robots

Getting started with Eclipse

January 12th, 2012

Hey everyone,

In this post, I will discuss how to create projects within Eclipse.

Once Eclipse is installed (but I’m using portable version) and when you firstly run it. Follow the steps in order to create java projects :

1 – Click File menu or right click on the Project explorer.
2 – Select New menu and choose ‘Java Project’.

‘New Java Project’ wizard will open. The very first field is Project name, give it a meaningful project name. In this example, I’m giving it “Hello_World”. Make sure the latest or default JRE option is selected in JRE group. Then click ‘Next’ button. Next form allows you to check and modify Java build settings which you don’t really need to worry about now and simply click the ‘Finish’ button.

Now you can see your Project in Project Explorer. Double click on it, now you will see ’src’ node right under the Project. Right click on ’src’ node, select New menu and choose ‘Class’. ‘New Java Class’ wizard will open. Ignoring other advance fields, Simply enter the name of class in Class field. In this example, I’m using “HelloWorld”. Make sure modifier field is set to public and Superclass field is java.lang.Object. Also, tick the check box with public static void main(String[] args) and click ‘Finish’ button.

A new ‘HelloWorld.java’ tab will open in editor with code :

public class HelloWorld {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

}

Right after the line : public static void main (String[] args)
Add another line : System.out.println(”Hello World”);

And all together, It should look like this :

public class HelloWorld {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Hello World");
	}

}

To run it, right click anywhere in the HelloWorld.java tab, select ‘Run As’ menu and choose ‘Java Application’.

That’s it for this post. I will come up with more Java tasks for my portfolio work. PK!

Sphinx 4.0 Video Tutorial ( High Quality )

October 30th, 2009

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 or View on Megavideo

File Details :

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

Finally FreeTTS Worked :)

October 4th, 2009

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!

Speech Recognizer In Java (Tutorial)

September 14th, 2009

Hello All,

This is my first video tutorial. This tutorial demonstrates how to make a speech recognizer in java using Sphinx.

Requirements to work according to the tutorial :
1 ) JDK 6 ( J2SE )
2 ) Eclipse SDK ( Im using Eclipse 3.4.0 )
3 ) Sphinx 4.0
4 ) JSAPI ( Included in Sphinx 4.0 )

Tutorial is divided into 3 parts.

Please feel free to post your comments and suggestions on tutorial and help me to improve the quality.

Regards,