Browse
 
Tools
Rss Categories

LVTTSClient::JumpToSSMLMark

Reference Number: AA-01037 Views: 9424 0 Rating/ Voters

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

Function

  • LV_TTS_RETURN_CODE JumpToSSMLMark(unsigned int ssml_mark_idx)

Parameters

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

Return Values

LV_SUCCESS

No errors; offset successfully re-positioned.

LV_INVALID_TTS_HANDLE

  The TTS client handle is invalid (either Initialize has not been called or Destroy has already been called).

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.