TtsStop
Stop the TTS conversion process initiated by a call to TtsProcessEx.
TTSRETVAL TtsStop(
HTTSINSTANCE hTtsInst)
Since the process functions are synchronous (blocking), the TtsStop function must be called from a different thread than the one that called the TtsProcessEx function, or from within the output callback function.
The TtsStop function always succeeds unless the engine instance is not speaking. In other words, when TtsStop is called and TtsProcessEx is no longer busy or is nearly finished, TtsStop may return error 2, which is normal. Error 2 indicates the engine is in the wrong state (not speaking).
Argument |
Description |
---|---|
hTtsInst |
[in] Handle to a TTS engine instance |