TtsSystemInit
One-time initialization of the Vocalizer library.
It must be called only once for each process (calling it more than once per process could cause memory leaks or crashes), and must be called immediately after NVSClientInit or NVSClientInitFromFile, and prior to any other Vocalizer API function.
TTSRETVAL TtsSystemInit(
const LH_CHAR * szUserConfigFile,
TTS_LOG_ERROR_CB TtsLogErrorCb,
void * pAppData
);
Argument |
Description |
---|---|
szUserConfigFile |
[in] Optional (can be NULL). User XML configuration file that can override the standard Vocalizer XML configuration file settings. |
TtsLogErrorCb |
[in] Optional (can be NULL). Name of the registered TTS_LOG_ERROR_CB. Use this argument to catch initialization errors. (If you don't catch the errors with this feature, you can still get them via stderr.) |
pAppData |
[in] Optional (can be NULL). Any useful application data. In the case of an initialization error, the pointer will be passed back to the application. |