Skip to content

Instantly share code, notes, and snippets.

@sils
Created October 3, 2015 21:23
Show Gist options
  • Save sils/5e42f71cd611c5731b53 to your computer and use it in GitHub Desktop.
Save sils/5e42f71cd611c5731b53 to your computer and use it in GitHub Desktop.
A script for speechless people to give them a voice
from subprocess import PIPE, check_output
import readline
while True:
sentence = input("Type something to speak: ")
check_output("echo \""+sentence+"\" | festival --tts", shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment