<p>Below the script I used to generate a bunch of wav files with different text to speech applications.</p>
<pre><code>#!/bin/bash

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

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

flite -o flite-voice-cmu_us_slt.wav -voice cmu_us_slt  &quot;${string}&quot;

echo &quot;${string}&quot;| festival --language english --tts # same as next line
echo &quot;${string}&quot;| 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
do
  text2wave -o festival_voice_${voice}.wav -eval &quot;(voice_${voice} )&quot;  text.txt
done

# Gnustep say, recorded with audio recorder.
say &quot;${string}&quot;

text2wave -o festival_voice_cmu_us_slt_arctic_hts.wav -eval &quot;(voice_cmu_us_slt_arctic_hts )&quot; text.txt

# merlin https://github.com/CSTR-Edinburgh/merlin

# marytts: https://github.com/marytts</code></pre>
