saiSetParamSynthesizer

Updates the synthesizer parameters used for the duration of the current synthesizer session.

Prototype

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 values

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.


Events

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.


Details

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.

See also

saiGetParamSynthesizer