saiTtsGetProsody

Retrieves synthesizer speech prosody parameters such as pitch, duration, and volume.

Prototype

DWORD saiTtsGetProsody ( SAI_SYNTHESIZER_HANDLE synthHd, SAI_PROSODY *value )

Argument

Description

synthHd

Handle associated with a synthesizer resource.

value

Pointer to the SAI_PROSODY structure that indicates speaker voice prosody characteristics such as pitch, duration, and volume:

typedef struct
{
   INT32             pitch;
   INT32             contour;
   INT32             range;
   INT32             rate;
   INT32             duration;
   INT32             volume;
}
SAI_PROSODY;

For more information, refer to SAI_PROSODY. For information about prosody attributes, refer to the SSML specification and to the vendor documentation.


Return values

Return value

Description

SUCCESS

 

SAIERR_INVALID_PARAMETER

One of the specified arguments is invalid.

SAIERR_UNSUPPORTED_SPEECH_PARAMETER

Speech engine does not support the specified parameter.


See also

saiTtsSetProsody