ISpPhoneticAlphabetConverter::UPS2SAPI (SAPI 5.3)
Speech API 5.3
Returns the SAPI phone id of the specified UPS phone.
HRESULT UPS2SAPI( SPPHONEID *pszUPSId SPPHONEID *pszSAPIId DWORD cMaxLength );
- [in] The UPS phone to be converted.
- [out] The SAPI phone that was converted from UPS.
- The length, in phonemes, of the caller-provided buffer pszUPSId, including the terminating null phoneme ID. Applications can supply a buffer size of SP_MAX_PRON_LENGTH + 1, or they can obtain the required size of the output buffer by calling GetMaxConvertLength.
|SPERR_BUFFER_TOO_SMALL||The specified output buffer length is not sufficient.|
|SPERR_PHONEME_CONVERSION||The input phoneme string cannot be converted to the desired alphabet. This typically means the phoneme IDs are invalid for the current language.|
|S_OK||Function completed successfully.|