Returns the offset, in bytes, to the beginning of the specified SSML mark in the synthesized audio buffer. The offset provided is relative to the start of the buffer. See SSML documentation for more information relating to Mark elements and how they can be used within SSML syntheses. There is also documentation to convert buffer offset to milliseconds.
Function
- LV_TTS_RETURN_CODE GetSSMLMarkOffsetInBuffer(unsigned int ssml_mark_idx, int * buffer_offset)
Parameters
ssml_mark_idx
Index of the SSML mark to whose beginning the offset in buffer is being queried. It must be in the range [0, (ssml_marks_count - 1)] where ssml_marks_count was obtained from a call to GetSSMLMarksCount.
buffer_offset
Pointer to an integer variable in which the offset value will be returned.
Return Values
LV_SUCCESS
No errors; the queried offset value is available in buffer_offset.
LV_INVALID_TTS_HANDLE
The input TTS client handle is not a valid one.
LV_NO_RESULT_AVAILABLE
Synthesis results are not yet available.
LV_FAILURE
The input ssml_mark_idx is out of range.
LV_EXCEPTION
An exception occurred while processing the request.