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 LV_TTS_WaitForSynthesis(HTTSCLIENT client_handle, unsigned int timeout_ms);
Handle to the active TTS client object.
Duration (in milliseconds) to wait for the TTS server's response.
No errors; synthesis' results are now available.
The specified TTS client handle is not a valid one.
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 the 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.