Adds a specified speak rule to the end of a specified speak list.
DWORD saiAddSpeakItem ( void *speakList, SAI_SPEAK_DATA_TYPE dataType, char *speakItem )
|
Argument |
Description |
|
speakList |
Pointer to a speak list to which to add the speak rule. |
|
dataType |
Payload data type. The following list shows supported speak data types and their associated numeric values:
|
|
speakItem |
Pointer to a speak rule to add. |
|
Return value |
Description |
|
SUCCESS |
|
|
SAIERR_INVALID_PARAMETER |
One of the specified arguments is invalid. |
|
SAIERR_LIST_NOT_INITIALIZED |
Specified list pointer is not initialized. |
|
SAIERR_NOT_ENOUGH_MEMORY |
Specified list is not large enough to accommodate the specified speak rule. |
Applications must initialize the specified speak list (speakList) with saiInitSpeakList before invoking saiAddSpeakItem. If the specified speakList is not initialized, the SAI service returns SAIERR_LIST_NOT_INITIALIZED.
For more information, refer to Creating a synthesizer speak list.