Browse
 
Tools
Rss Categories

LV_TTS_JumpToSSMLMark

Reference Number: AA-01004 Views: 9263 0 Rating/ Voters

Move the buffer offset to the beginning of the specified SSML mark so that the next call to LV_TTS_GetSynthesizedAudioBuffer returns samples starting at that offset.

Function

  • LV_TTS_RETURN_CODE LV_TTS_JumpToSSMLMark(HTTSCLIENT client_handle, unsigned int ssml_mark_idx);

Parameters

client_handle

Handle to the TTS client object.

ssml_mark_idx

Index of the SSML mark of whose beginning the offset must be moved to. It must be in the range [0, (ssml_marks_count - 1)] where ssml_marks_count was obtained from a call to LV_TTS_GetSSMLMarksCount.

Return Values

LV_SUCCESS

No errors; offset successfully re-positioned.

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.