Created
October 16, 2014 22:35
-
-
Save szolotykh/fae50a074edbade5528b to your computer and use it in GitHub Desktop.
Init exampe of pyttsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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