Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at

hpr2792 :: Playing around with text to speech synthesis on Linux

Playing around with different text to speech programs to see what is possible.

<< First, < Previous, , Latest >>

Thumbnail of Jeroen Baten
Hosted by Jeroen Baten on 2019-04-16 is flagged as Clean and is released under a CC-BY-SA license.
speech synthesis linux. (Be the first).
The show is available on the Internet Archive at:

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:20:03

Sound Scapes.

Come with us on a journey through sound.

Below the script I used to generate a bunch of wav files with different text to speech applications.


string="This is HPR episode 2792 entitled \"Playing around with text to speech synthesis on Linux\" and is part of the series \"Sound Scapes\". It is hosted by Yeroon Bahten and is about 20 minutes long and carries a clean flag."
echo "${string}" > text.txt

espeak -w espeak.wav "${string}" 
espeak -w espeak-ng-v-mb-us1.wav -v mb-us1 "${string}"
espeak -w espeak-ng-v-mb-us2.wav -v mb-us2 "${string}"
espeak -w espeak-ng-v-mb-us3.wav  -v mb-us3 "${string}"
espeak-ng "${string}"
espeak-ng -v en-gb "${string}"
espeak-ng -w espeak-ng-en-gb-scotland.wav -v en-gb-scotland "${string}"
espeak-ng -w espeak-ng-en-us.wav  -v en-us "${string}"

flite -o flite-voice-cmu_us_slt.wav -voice cmu_us_slt  "${string}"

echo "${string}"| festival --language english --tts # same as next line
echo "${string}"| text2wave --language british_english --tts -o festival_british_english.wav
text2wave -o festival_british_english.wav  text.txt

for voice in don_diphone kal_diphone ked_diphone rab_diphone
  text2wave -o festival_voice_${voice}.wav -eval "(voice_${voice} )"  text.txt

# Gnustep say, recorded with audio recorder.
say "${string}"

text2wave -o festival_voice_cmu_us_slt_arctic_hts.wav -eval "(voice_cmu_us_slt_arctic_hts )" text.txt

# merlin

# marytts:


Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?