ISpPhoneticAlphabetConverter::SAPI2UPS (SAPI 5.3)

Microsoft Speech API 5.3

ISpPhoneticAlphabetConverter::SAPI2UPS

Returns the UPS phone id of the specified SAPI phone.

  
    HRESULT SAPI2UPS(
   SPPHONEID       *pszSAPIId
   SPPHONEID       *pszUPSId
   DWORD            cMaxLength
);

Parameters

  • pszSAPIId
    [in] The SAPI phone to be converted.
  • pszUPSId
    [out] The UPS phone that was converted from SAPI.
  • cMaxLength
    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.

Return values

Value
SPERR_BUFFER_TOO_SMALL
SPERR_PHONEME_CONVERSION
S_OK