Export (0) Print
Expand All

ISpPhoneConverter::IdToPhone (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpPhoneConverter::IdToPhone

ISpPhoneConverter::IdToPhone converts a null-terminated ID code array to the SAPI character format.

The English and Chinese phoneme character sets require that each phoneme be separated/delimited from the next phoneme by a space. The Japanese phoneme character set requires the phoneme characters to be continuous, with no delimiters. See the individual English, Chinese, and Japanese topics for more details about their character sets.


HRESULT IdToPhone(
   const PCSPPHONEID    *pId,
   WCHAR                *pszPhone
);

Parameters

pId
[in] Address of the null-terminated array of SPPHONEIDs that contains the phoneme identifiers.
pszPhone
[out] Address of a null-terminated string that receives the phoneme string information.

Return values

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGOne or more parameters are invalid. Alternatively, pId exceeds SP_MAX_PRON_LENGTH.
E_POINTERpszPhone or pId is invalid or bad.
SPERR_UNINITIALIZEDInterface not initialized.
E_FAILMember exceeds available size.
FAILED(hr)Appropriate error message.
Show:
© 2015 Microsoft