Browse
 
Tools
Rss Categories

LVTTSClient::GetSynthesizedAudioFormat

Reference Number: AA-01030 Views: 2126 0 Rating/ Voters

Returns the sound format of the synthesized audio from the last call to Synthesize

Function

  • LV_TTS_RETURN_CODE GetSynthesizedAudioFormat(int * audio_format)

Parameters

audio_format

Memory location of integer value 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 invalid (either Initialize has not been called or Destroy has already been called).

LV_EXCEPTION

An exception occurred while processing the request.