SetSpeechInfo
Changes a setting of a particular speech channel.
Declaration
OSErr SetSpeechInfo(SpeechChannel chan, OSType selector, const void *speechInfo);Parameters
- 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.
For a complete list of speech information selectors, see 1552228 Speech Channel_information_constants. This list indicates how your application should set the
speechInfoparameter for each selector. - speechInfo:
A pointer whose meaning depends on the speech information selector specified in the
selectorparameter.
Return Value
A resultcode. See Result Codes.
Discussion
The SetSpeechInfo functionchanges the type of setting indicated by the selector parameterin the speech channel specified by the chan parameter,based on the data your application provides via the speechInfo parameter.
The format of the data structure specified by the speechInfo parameterdepends on the selector you choose. Ordinarily, a selector requiresthat speechInfo be apointer to a data structure that specifies a new setting for thespeech channel.