ISpVoice::Pause (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

ISpVoice::Pause

ISpVoice::Pause pauses the voice at the nearest alert boundary and closes the output device, allowing access to pending speak requests from other voices.

HRESULT  Pause  ( void );

Parameters

None.

Return values

Value Description
S_OK Function completed successfully.
FAILED(hr) Appropriate error message
Remarks:

Calling ISpVoice::Pause while the voice is not speaking increments the pause count and will put the voice into a paused state until ISpVoice::Resume is called the same number of times.

The voice maintains a pause count, so each call to pause must be balanced with a corresponding call to ISpVoice::Resume.

The default alert boundary is at the beginning of each word. See ISpVoice::SetAlertBoundary for details.