Helper SpCreatePhoneConverter (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

SpCreatePhoneConverter

SpCreatePhoneConverter creates a directly converted phone. Calls the helper function SpCreateBestObject with the category of SPCAT_PHONECONVERTERS.

Found in: sphelper.h

SpCreatePhoneConverter(
   LANGID            *langid,
   const WCHAR       *pszReqAttribs,
   const WCHAR       *pszOptAttribs,
   ISpPhoneConverter  ppPhoneConverter
);

Parameters

langid
[in] The language ID of the word. May not be NULL or zero.
pszReqAttribs
[in] The null-terminated string of required attributes for the token.
pszOptAttribs
[in] The null-terminated string of optional attributes for the token.
ppPhoneConverter
[out] The converted phone interface.

Return values

Value Description
S_OK Function completed successfully.
E_INVALIDARG langid equals zero.
FAILED (hr) Appropriate error message.