Important: Inside Macintosh: Sound is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.
GetSpeechRate
You use the GetSpeechRate function to obtain a speech channel's current speech rate.
FUNCTION GetSpeechRate (chan: SpeechChannel; VAR rate: Fixed) : OSErr;
chan- The speech channel whose rate you wish to determine.
rate- On exit, the speech channel's speech rate, expressed as a fixed-point, words-per-minute value.
DESCRIPTION
TheGetSpeechRatefunction returns, in therateparameter, the speech rate of the speech channel specified by thechanparameter.SPECIAL CONSIDERATIONS
You can call theGetSpeechRatefunction at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the GetSpeechRate function are
Trap macro Selector _SoundDispatch$0448000C RESULT CODES
noErr 0 No error invalidComponentID -3000 Speech channel is uninitialized or bad