Important: The information in this document is obsolete and should not be used for new development.
SRSetProperty
You can use theSRSetPropertyfunction 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
TheSRSetPropertyfunction sets the value of the property of the speech object specified by thesrObjectparameter to the value specified through thepropertyparameter. Theselectorparameter specifies which property is to be set and thepropertyLenparameter specifies it size, in bytes.Not all properties can be set. If you attempt to set a property that cannot be set,
SRSetPropertyreturns the result codekSRCantSetPropertyorkSRBadSelectoras its function result.