ISpPhoneticAlphabetConverter::GetMaxConvertLength (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

ISpPhoneticAlphabetConverter::GetMaxConvertLength

Gets the maximum length of a string after conversion.

The length returned is measured in phonemes, and includes the terminating null.

HRESULT GetMaxConvertLength(
   DWORD           cSrcLength
   BOOL            bSAPI2UPS
   DWORD          *pcMaxDestLength
);

Parameters

cSrcLength
The length of the string to be converted.
bSAPI2UPS
TRUE if converting from SAPI to UPS; FALSE if converting from UPS to SAPI.
pcMaxDestLength
[out] The maximum length of the string after conversion.

Return values

Value Description
SPERR_UNINITIALIZED The language of the SAPI phone set has not been set.
S_OK Function completed successfully.