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.
SetSpeechInfo
You can use the SetSpeechInfo function to change a setting of a particular speech channel.
FUNCTION SetSpeechInfo (chan: SpeechChannel; selector: OSType; speechInfo: Ptr): OSErr;
chan- The speech channel for which your application wishes to change a setting.
 selector- A speech information selector that indicates the type of information being changed.
 speechInfo- A pointer whose meaning depends on the speech information selector specified in the
 selectorparameter.DESCRIPTION
TheSetSpeechInfofunction changes the type of setting indicated by theselectorparameter in the speech channel specified by the chan parameter, based on the data your application provides via thespeechInfoparameter.The format of the data structure specified by the
speechInfoparameter depends on the selector you choose. Ordinarily, a selector requires thatspeechInfobe a pointer to a data structure that specifies a new setting for the speech channel.SPECIAL CONSIDERATIONS
You can call theSetSpeechInfofunction at interrupt time only if the speech information selector specified in theselectorparameter does not move or purge memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSetSpeechInfofunction are
Trap macro Selector _SoundDispatch$0654000C RESULT CODES
noErr 0 No error paramErr -50 Parameter value is invalid siUnknownInfoType -231 Feature is not implemented on synthesizer incompatibleVoice -245 Specified voice cannot be used with synthesizer invalidComponentID -3000 Speech channel is uninitialized or bad SEE ALSO
For a complete list of speech information selectors, see "Speech Information Selectors" beginning on page 4-39. This list indicates how your application should set thespeechInfoparameter for each selector and indicates which selectors might cause memory to be moved or purged.