speech channel objects -- Python library reference



Prev: voice objects Up: macspeech Top: Top

14.10.2. speech channel objects

A speech channel object allows you to speak strings with slightly more control than SpeakString(), and allows you to use multiple speakers at the same time. Please note that channel pitch and rate are interrelated in some way, so that to make your Macintosh sing you will have to adjust both.

SpeakText (str) -- Method on speech channel object
Start uttering the given string.
Stop () -- Method on speech channel object
Stop babbling.
GetPitch () -- Method on speech channel object
Return the current pitch of the channel, as a floating-point number.
SetPitch (pitch) -- Method on speech channel object
Set the pitch of the channel.
GetRate () -- Method on speech channel object
Get the speech rate (utterances per minute) of the channel as a floating point number.
SetRate (rate) -- Method on speech channel object
Set the speech rate of the channel.


Prev: voice objects Up: macspeech Top: Top