Updates the synthesizer parameters used for the duration of the current synthesizer session.
DWORD saiSetParamSynthesizer ( SAI_SYNTHESIZER_HANDLE synthHd, SAI_REQUEST_ID *requestId )
|
Argument |
Description |
|
synthHd |
Handle associated with a synthesizer resource. |
|
requestId |
Pointer to a unique identifier associated with the request. |
|
Return value |
Description |
|
SUCCESS |
|
|
SAIERR_ENGINE_NOT_READY |
Specified synthesizer engine is not ready to handle the request. |
|
SAIERR_INVALID_PARAMETER |
One of the specified arguments is invalid. |
|
Event |
Description |
|
SAIEVN_SET_PARAMETER_DONE |
Request was processed. The result of the request is returned in the statusCode field of the SAIEVN_SET_PARAMETER_DONE event buffer. |
If required, the application must set specific speech parameters with synthesizer parameter functions such as saiTtsSetKillOnBargeIn and saiTtsSetSpeakerProfile prior to invoking saiSetParamSynthesizer. For more information, refer to Managing USAI parameters.