Skip to content

Instantly share code, notes, and snippets.

@majenkotech
Last active July 27, 2022 17:49
Show Gist options
  • Save majenkotech/6cde4b7062f21604e181494a11e9ca31 to your computer and use it in GitHub Desktop.
Save majenkotech/6cde4b7062f21604e181494a11e9ca31 to your computer and use it in GitHub Desktop.
Festival Commands

Using festival

Installing

  • 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

Using It

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment