[Pythonmac-SIG] Speech Synthesis

Bob Ippolito bob at redivi.com
Tue Sep 28 17:07:23 CEST 2004


On Sep 28, 2004, at 5:31 AM, Juan Sebastián Lach wrote:

> Is there by any chance a version of the macspeech module than can work 
> with
> OSX?? If not, would it be too difficult to implement? I want to control
> speech synthesis from Python and/or SuperCollider.

There's more than one way to do it:

/usr/bin/say (not sure when this was first available.. 10.2 maybe?)
10.3 and later you can use NSSpeechSynthesizer from PyObjC
AppleScript (either via /usr/bin/osascript or one of the native 
bindings such as appscript)

-bob


More information about the Pythonmac-SIG mailing list