Returns the sample rate (in Hz) of the synthesized audio from the last call to Synthesize
Function
-
LV_TTS_RETURN_CODE GetSynthesizedAudioSampleRate(int * sample_rate)
Parameters
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 value.
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.