Skip to content

Jack84283/pyttsx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyttsx

Cross-platform Python wrapper for text-to-speech synthesis

Quickstart

basic usage for speak text out:

import pyttsx
engine = pyttsx.init()
engine.say('Greetings!')
engine.say('How are you today?')
#engine.runAndWait() #no nead for this version

See http://pyttsx.readthedocs.org/ for documentation of the full API.

the flollowing recording function is added by hick(http://blog.HickWu.com), for windows only:

import pyttsx
engine = pyttsx.init()
engine.rec(u'中文支持!', 'hick.wav')

Included drivers

  • nsss - NSSpeechSynthesizer on Mac OS X 10.5 and higher
  • sapi5 - SAPI5 on Windows XP, Windows Vista, and (untested) Windows 7
  • espeak - eSpeak on any distro / platform that can host the shared library (e.g., Ubuntu / Fedora Linux)

Contributing drivers

Email the author if you have wrapped or are interested in wrapping another text-to-speech engine for use with pyttsx.

Project links

License

Copyright (c) 2009, 2013 Peter Parente All rights reserved.

http://creativecommons.org/licenses/BSD/

About

Cross-platform text-to-speech wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published