Export (0) Print
Expand All

ISpPhoneticAlphabetConverter::GetMaxConvertLength (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

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

ValueDescription
SPERR_UNINITIALIZEDThe language of the SAPI phone set has not been set.
S_OKFunction completed successfully.
Show:
© 2014 Microsoft