ISpPhoneticAlphabetConverter::UPS2SAPI (SAPI 5.4)

Microsoft Speech API 5.4

ISpPhoneticAlphabetConverter::UPS2SAPI

Returns the SAPI phone id of the specified UPS phone.

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

Parameters

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

T