macspeech -- Python library reference



Next: EasyDialogs Prev: mactcp Up: Macintosh Specific Services Top: Top

14.10. Built-in Module macspeech

This module provides an interface to the Macintosh Speech Manager, allowing you to let the Macintosh utter phrases. You need a version of the speech manager extension (version 1 and 2 have been tested) in your Extensions folder for this to work. The module does not provide full access to all features of the Speech Manager yet. It may not be available in all Mac Python versions.

Available () -- function of module macspeech
Test availability of the Speech Manager extension (and, on the PowerPC, the Speech Manager shared library). Return 0 or 1.
Version () -- function of module macspeech
Return the (integer) version number of the Speech Manager.
SpeakString (str) -- function of module macspeech
Utter the string str using the default voice, asynchronously. This aborts any speech that may still be active from prior SpeakString invocations.
Busy () -- function of module macspeech
Return the number of speech channels busy, system-wide.
CountVoices () -- function of module macspeech
Return the number of different voices available.
GetIndVoice (num) -- function of module macspeech
Return a voice object for voice number num.

Menu

voice objects
speech channel objects


Next: EasyDialogs Prev: mactcp Up: Macintosh Specific Services Top: Top