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
selector
parameter.DESCRIPTION
TheSetSpeechInfo
function changes the type of setting indicated by theselector
parameter in the speech channel specified by the chan parameter, based on the data your application provides via thespeechInfo
parameter.The format of the data structure specified by the
speechInfo
parameter depends on the selector you choose. Ordinarily, a selector requires thatspeechInfo
be a pointer to a data structure that specifies a new setting for the speech channel.SPECIAL CONSIDERATIONS
You can call theSetSpeechInfo
function at interrupt time only if the speech information selector specified in theselector
parameter does not move or purge memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSetSpeechInfo
function 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 thespeechInfo
parameter for each selector and indicates which selectors might cause memory to be moved or purged.