Skip to content

Instantly share code, notes, and snippets.

@szolotykh
Created October 16, 2014 22:35
Show Gist options
  • Save szolotykh/fae50a074edbade5528b to your computer and use it in GitHub Desktop.
Save szolotykh/fae50a074edbade5528b to your computer and use it in GitHub Desktop.
Init exampe of pyttsx
import pyttsx
engine = pyttsx.init()
engine.setProperty('rate', 100)
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)
engine.say("A robot is a mechanical or virtual artificial agent, usually an electro-mechanical machine that is guided by a computer program or electronic circuitry.")
engine.runAndWait()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment