- Arch:
pacman -S festival festival-us
- Ubuntu:
apt install festival
For Ubuntu you might want to pick a better voice than the default one.
apt install festvox-us-slt-hts
The simplist method is to use text2wave
:
$ echo "This is text" | text2wave > test.wav
You can do it in a script with festival:
#!/usr/bin/env -S festival -b
(set! utt1 (Utterance Text "This is something"))
(utt.synth utt1)
(utt.save.wave utt1 "something.wav")
To use the better voice from above add this to the top of the script:
(voice_cmu_us_slt_arctic_hts)
Or from text2wave:
$ echo "text" | text2wave -eval '(voice_cmu_us_slt_arctic_hts)' > out.wav