ISpTTSEngine (Windows CE 5.0)
This interface defines the SAPI 5.0 text-to-speech (TTS) engine, a driver that is used for speech synthesis. SAPI calls this engine at its ISpTTSEngine::Speak method to render speech. SAPI itself performs the XML parsing of the input text stream.
Even though SAPI uses a free–threaded architecture, it always calls TTS engine objects on a single thread. SAPI ensures that parameter validation and thread synchronization have been performed properly before calling a TTS engine.
Applications never directly access TTS engines. All calls to an engine are made within a try-catch block to protect applications from faulting.
Methods
The following table shows the methods for the ISpTTSEngine interface.
Method | Description |
---|---|
GetOutputFormat | Determines the output format the engine wants to use. |
Speak | Sets up the engine to render a text fragment list in the specified output format. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.
See Also
Send Feedback on this topic to the authors