Suspend the current thread until either a response for a previous non-blocking synthesis operation is available or the specified timeout period elapses.
LV_TTS_RETURN_CODE WaitForSynthesis(unsigned int timeout_ms)
Duration (in milliseconds) to wait for the TTS server's response.
No errors; synthesis' results are now available.
The TTS client handle is invalid (either Initialize has not been called or Destroy has already been called).
The specified timeout_ms period elapsed first.
The supplied 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 needed voices.
The input was neither plain text nor SSML; or conversion of supplied SSML to UTF-8 format failed.
An exception occurred on the TTS server while processing the supplied SSML.
Conversion of the synthesized audio to the requested sound format and/or sampling rate has failed.
An exception occurred while processing the request.
When the call returns LV_TIME_OUT, it does not mean that the synthesis has failed. You may need to wait further (again) for the results.