Browse
 
Tools
Rss Categories

LV_TTS_GetSSMLMarkOffsetInBuffer

Reference Number: AA-00992 Views: 10381 0 Rating/ Voters

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 LV_TTS_GetSSMLMarkOffsetInBuffer(HTTSCLIENT client_handle, unsigned int ssml_mark_idx, int * buffer_offset );

Parameters

client_handle

Handle to the TTS client object.

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 LV_TTS_GetSSMLMarksCount.

buffer_offset

Pointer to an integer variable into 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.