Perform the text to speech synthesis operation for the given sentence or SSML text.
- LV_TTS_RETURN_CODE Synthesize(const char * universal_resource_locator, unsigned int flags)
URL containing a simple sequence of words/sentences or an SSML document.
Ideally, the referenced document should be encoded in UTF-8 format
Used to control certain facets of the operation. Mostly unused in the current implementation besides LV_TTS_BLOCK. Setting theLV_TTS_BLOCK bit in flags causes the call to wait for a response back from the TTS server before returning. If the LV_TTS_BLOCK flag is not specified, the synthesis will be performed in non-blocking mode, and calls to LVTTSClient::WaitForSynthesis can be used to determine when the synthesis operation has completed.
No errors; synthesis succeeded.
The TTS client handle is invalid (either Initialize has not been called or Destroy has already been called).
Either none of the connected TTS servers carry a voice corresponding to the requested features, or no TTS servers are available at the time.
If the TTS client has not been initialized yet.
Either failed to switch license type based on the currently set voice properties or failed to acquire any additionally needed licenses.
The acquired license(s) do not permit using the current version of the TTS server.
The maintenance date of the available license(s) is/are invalid.
The internal representation of the TTS Client handle is corrupted.
Not connected to any TTS server yet.
An exception occurred while processing the request.
-- -- The following values may be returned only when blocking synthesis is performed. -- --
The specified SSML had syntax error(s).
The TTS server is out of resources, or no voices have been loaded.
There was an error in the request, no voices were specified.
The TTS server failed to load one or more of the required voices.
The input was neither plain text nor SSML; or conversion of input SSML to UTF-8 format failed.
An exception occurred on the TTS server while processing the input SSML.
Conversion of the synthesized audio to the requested sound format and/or sampling rate has failed.
The synthesis request timed out.