Browse
 
Tools
Rss Categories

LV_TTS_GetSynthesizedAudioSampleRate

Reference Number: AA-00999 Views: 2028 0 Rating/ Voters

Returns the sample rate (in Hz) of the synthesized audio from the last call to LV_TTS_Synthesize.

Function

  • LV_TTS_RETURN_CODE LV_TTS_GetSynthesizedAudioSampleRate(HTTSCLIENT client_handle, int * sample_rate); 

Parameters

client_handle

Handle to the TTS client object.

sample_rate

Memory location of integer variable into which the sample rate value is to be copied.

Note that normally, this will return a value of 8000, being the default 8 KHz sample rate

If you are using 22 kHz voices, this value would be 22050

Return Values

LV_SUCCESS

No errors; sample_rate will contain the requested sample rate.

LV_FAILURE

The specified TTS client handle is not a valid one.

LV_EXCEPTION

An exception occurred while processing the request.