Pauses a synthesizer process.
DWORD saiPauseSynthesizer ( 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 |
Synthesizer associated with the specified synthHd cannot handle the request. |
|
SAIERR_INVALID_PARAMETER |
One of the specified arguments is invalid. |
|
Event |
Description |
|
SAIEVN_TTS_PAUSE_DONE |
Request was processed. The result of the request is returned in the statusCode field of the SAIEVN_TTS_PAUSE_DONE event buffer. |
saiPauseSynthesizer pauses a speech synthesis request that was received by the synthesizer engine.
If the synthesizer is not ready to process the request (that is, it is not in a SPEAK state), the SAI service returns SAI_SC_METHOD_NOT_VALID_IN_THIS_STATE in the statusCode field of the SAIEVN_TTS_PAUSE_DONE event buffer.
saiControlSynthesizer, saiResumeSynthesizer, saiSpeakSynthesizer, saiStopSynthesizer