Browse
 
Tools
Rss Categories

LV_TTS_GetSynthesizedAudioFormat

Reference Number: AA-00998 Views: 9312 0 Rating/ Voters

Returns the sound format of the synthesized audio from the last call to LV_TTS_Synthesize.

Function

  • LV_TTS_RETURN_CODE LV_TTS_GetSynthesizedAudioFormat(HTTSCLIENT client_handle, int * audio_format);

Parameters

client_handle

Handle to the active TTS client object.

audio_format

Memory location of integer variable into which the audio format value is copied. The audio format will be an integer equivalent to one of the following types: 

  • SFMT_ULAW - ulaw encoded
  • SFMT_PCM - PCM encoded
  • SFMT_ALAW - alaw encoded
  • SFMT_UNKNOWN - if the sound format is not known or no type information is available.

Return Values

LV_SUCCESS

No errors; audio_format will contain the requested audio format.

LV_FAILURE

The specified TTS client handle is not a valid one.

LV_EXCEPTION

An exception occurred while processing the request.