Function

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 Speech-Channel Information Constants. This list indicates how your application should set the speechInfo parameter for each selector.

speechInfo

A pointer whose meaning depends on the speech information selector specified in the selector parameter.

Return Value

A result code. See Result Codes.

Discussion

The SetSpeechInfo function changes the type of setting indicated by the selector parameter in 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 parameter depends on the selector you choose. Ordinarily, a selector requires that speechInfo be a pointer to a data structure that specifies a new setting for the speech channel.

See Also

Changing Speech Attributes

SetSpeechProperty

Sets the value of the specified speech-channel property.

SetSpeechPitch

Sets the speech pitch on a designated speech channel.

SetSpeechRate

Sets the speech rate of a designated speech channel.