Text-to-speech

Various text-to-speech snippets, using espeak / flite.


Read the related article on using espeak and flite.

espeak

hawking.sh

#!/usr/bin/env bash
content="Look up at the stars and not down at your feet."
espeak -p 0 --stdout <<< "$content" | play - pitch 350 speed 0.9
0
1
2

flite

You can find all the used .flitevox files on the festvox website.

anon.sh

#!/usr/bin/env bash
content="there's no need for Op. Trump, he destroys himself anyway"
flite -voice ./cmu_us_rms.flitevox -o tmp.wav -pw <<< "$content"
play - pitch -500 vol 2 < tmp.wav
0
1
2
3

female.sh

#!/usr/bin/env bash
content="your next meeting has been canceled"
flite -voice ./cmu_us_slt.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 240 speed 0.9 < tmp.wav
0
1
2
3

female_2.sh

#!/usr/bin/env bash
content="incoming communication from Mars"
flite -voice ./cmu_us_eey.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 100 vol 2 highpass 500 < tmp.wav
0
1
2
3

hades.sh

#!/usr/bin/env bash
content="ransomware is so 2000s"
flite -voice ./cmu_us_rms.flitevox -o tmp.wav -pw <<< "$content"
play - pitch -700 vol 2 < tmp.wav
0
1
2
3

lynda.sh

#!/usr/bin/env bash
content="welcome to linkedin learning"
flite -voice ./cmu_us_axb.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 100 < tmp.wav
0
1
2
3

male.sh

#!/usr/bin/env bash
content="new login on server 2"
flite -voice ./cmu_us_rms.flitevox -o tmp.wav -pw <<< "$content"
play - pitch -200 reverb < tmp.wav
0
1
2
3

male_2.sh

#!/usr/bin/env bash
content="shutting down in 10 seconds"
flite -voice ./cmu_us_jmk.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 120 speed 0.9 < tmp.wav
0
1
2
3

male_3.sh

#!/usr/bin/env bash
content="brits are constantly constipated"
flite -voice ./cmu_us_fem.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 80 speed 1 < tmp.wav
0
1
2
3

male_4.sh

#!/usr/bin/env bash
content="i do not identify as a robot"
flite -voice ./cmu_us_bld.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 100 vol 2 < tmp.wav
0
1
2
3

nordic_developer.sh

#!/usr/bin/env bash
content="hello! do you like programming?"
flite -voice ./cmu_us_awp.flitevox -o tmp.wav -pw <<< "$content"
play - pitch 100 speed 1.1 treble 20 < tmp.wav
0
1
2
3