Skip to main content

Posts

Showing posts from December, 2017

​JAVA: HOW TO CONVERT TEXT TO SPEECH USING FreeTTS API - 3 SIMPLE STEPS

​JAVA: HOW TO CONVERT TEXT TO SPEECH USING FreeTTS API - 3 SIMPLE STEPS PREREQUISITE : 1) ECLIPSE IDE 2) FreeTTS API -  CLICK HERE TO DOWNLOAD 3) SWING.JAR -  CLICK HERE TO DOWNLOAD STEP 1: Download the FreeTTS API.  CLICK here to download FreeTTS API . Unzip the downloaded file. Now copy the 'lib' folder present in 'freetts-1.2' to your project STEP 2: Download the swing.jar file.  Click here to download swing.jar . Now add the swing.jar file in the 'lib' folder of java. Simply right click 'JRE System Library', then click 'Add JAR's' and then find the 'swing.jar' file. Click OK. STEP 3: Now write the code.  To download Source Code Click here SOURCE CODE: package pa; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.JTextField; import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class texttospeech ext...