Skip to content

Instantly share code, notes, and snippets.

@amarvutha
Created September 20, 2013 15:48
Show Gist options
  • Save amarvutha/6639592 to your computer and use it in GitHub Desktop.
Save amarvutha/6639592 to your computer and use it in GitHub Desktop.
Voice synthesis via Python
import os, subprocess
os.chdir("c:/Program Files (x86)/eSpeak/command_line/")
speakString = "This parrot is no more. It has ceased to be. It's expired and gone to meet its maker. This is a late parrot. It's a stiff. Bereft of life, it rests in peace. If you hadn't nailed it to the perch, it would be pushing up the daisies. It's rung down the curtain and joined the choir invisible. This is an ex-parrot."
subprocess.call(["espeak","-ven+f5",`speakString`])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment