I created a sample project using text to speech conversion.
In this project you can listen to what you write in English language only.
It can be used by kids to learn alphabet or words phonetics and for words recognition etc.
I used it with my 2 year old son and he found it very interesting. He laughed at every sound he heard from the computer and he could relate to the alphabets also.
This uses Apache Tapestry, Tomcat, JSAPI, freeTTS and Bootstrap.
There is no database required.
It is not hosted yet but you can check the code and screenshots at —
Use your headphones to listen to whatever you write.
It was fun making the computer speak what you write down.
I even tried out a few song lyrics to be read out, though it sounded much weird 😉
Next: Want to speak and let the computer listen to my commands.
- Check for Multi-threaded issues – like no instance variables in a service class.
- File names should have date and for whom the file is being generated.
- Check where the file is being stored and what will happen to it.
- If the objects are not string then control the output to the file– like for BigDecimal and Dates. It may be changed to other notations.
- Add hard coded strings in properties files or make them as constants
- Use StringBuffer instead of string
- Use BigDecimal instead of double for more complex math calcs.
- For BigDecimal use scale and RoundingMode when dividing or multiplying
- If creating a file then either set delete on exit property or create files in temp directory.
- Use apache StringUtils and DateUtils for quick string and date formatting.