Sunday, September 8, 2013

Speech Synthesizer For Linux (Espeak)


Now-a-days it is very boring for people to read books or read their documents. So people refer listening to the files rather than reading. It saves their time and which can be heard anytime and anywhere. So as a narrator is present in windows by default we can have the same application with many such features such as reading and recording the files into different music formats. Espeak is a multi-lingual software speech synthesizer.



1. To install espeak type the command sudo apt-get install espeak as shown in figure below:

Fig 1: Installing espeak

2. After installing the first thing we do is to check whether it is working or not, so we take a text file that has to be read, for reading a text file we need to run the command as shown below:
          $ espeak -f file_name
Fig 2: Reading File
3. We can set the pitch which is between 0 to 99 and the default value is 50.
        $espeak -p pitch_value(between 0 to 99) -f file_name
Fig 3: Set Pitch Value
 
4. We can even set the amplitude for the voice the default amplitude is 10.
       $espeak -a amplitude(between 0 to 20) -f file_name
Fig 4: Set Amplitude

  5. We can set the number of words per minute for a file that has to be read, this  can be done using the following command.
      $espeak -s (words/minute) -f file_name
Fig 5: Set Number Of words per minute
 
6. We can even record the whole file as music file, espeak stores the file in it default format as .wav, which can be done as follows:
    $espeak -f file_name -w music_filename
Fig 6: Recording A File

If you need more information you can see the manual page by using the command  
   $man espeak

2 comments: