Important: The information in this document is obsolete and should not be used for new development.
SRSetProperty
You can use theSRSetProperty
function to set the value of a property of a speech object.
pascal OSErr SRSetProperty ( SRSpeechObject srObject, OSType selector, const void *property, Size propertyLen);
srObject
- A speech object.
selector
- A property selector. See "Recognition System Properties" on page 1-37, "Recognition Result Properties" on page 1-46, "Recognizer Properties" on page 1-40, and "Language Object Properties," beginning on page 1-47 for lists of the available property selectors.
property
- The address of a buffer containing the value to which the specified property is to be set.
propertyLen
- The length, in bytes, of the specified buffer.
DESCRIPTION
TheSRSetProperty
function sets the value of the property of the speech object specified by thesrObject
parameter to the value specified through theproperty
parameter. Theselector
parameter specifies which property is to be set and thepropertyLen
parameter specifies it size, in bytes.Not all properties can be set. If you attempt to set a property that cannot be set,
SRSetProperty
returns the result codekSRCantSetProperty
orkSRBadSelector
as its function result.