This tutorial will explain you how to speak Hindi Words using Dhvani Java API.
Implementing Hindi Speech Recognizer:
Requirements :
If you don't have above software please download it by clicking respective software name.Implementing Hindi Speech Recognizer:
- Basic requirement of this Hindi Speech synthesizer is you need to have Linux as your operating system. Because API we are using for synthesize purpose is Dhvani which works only on Linux.
- Install JDK 6.
- Install Dhvani.Follow the instructions given on Dhvani official website.
- You can check if dhvani is properly installed or not by using command
Dhvani -v
- Extract " Hindi Speech Synthesizer.zip" file to "Hindi Speech Synthesizer" folder.
- Open command prompt and navigate to the the "Hindi Speech Synthesizer" folder.
- Compile "TestExec.java" file using command
javac TestExec.java
- Run "TestExec.class" file using command
java TestExec
- You can hear a voice saying "Mera naam ashish hai".
- To speak the sentence you want to speak you need to make changes in "Hindi.txt" file.You can write any sentence you want.
- The most important thing in this system is you need to save "Hindi.txt" file in UTF-8 Format only.