Pages

Text to audio


 Introduction
 One day while sitting and reading a story on my laptop, it occurred to me that how awesome it would be if instead of reading all the text word by word, the computer would read it for me. Even it could generate a audio file (eg:- story.wav ) so that I could transfer it on my mobile and hear it whenever I am free without having to open my Laptop. I could use the same Audio as a dialog for my animation project.
Solution
Well, obviously, the next step was to google, search learn try then again search. There were several interesting solutions. One of them is the command called
espeak
To read a file type,( cd to the directory )
espeak <filename>
The general and simple syntax of the command is
espeak -v <voice_tone_name> -s <speed_per_minute> -f <text_file_name> -w <wave_file_name_desired>
Open a terminal, and type in the command to see/hear the magic.
For command documentation and options
espeak -h
 You can see the list of voices with
espeak --voices
This command has proved to be a great fun to me and hope you will enjoy using it too.

No comments:

Post a Comment

If you like to say anything (good/bad), Please do not hesitate...