Share via


ISpPhoneConverter::PhoneToId (Windows CE 5.0)

Send Feedback

This method converts a character phoneme string to an ID code string. The English and Chinese phoneme sets require the phonemes to be space-separated. The Japanese phoneme set requires the phoneme character form to be continuous. See the individual entries for more details about the character sets.

HRESULT PhoneToId(const WCHAR* pszPhone,SPPHONEID* pId);

Parameters

  • pszPhone
    [in] Pointer to a null-terminated string that contains the phoneme string information.
  • pId
    [out] Pointer to a zero-terminated list of SPPHONEID phoneme identifiers.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_INVALIDARG One or more arguments are invalid, or phoneme not found.
SPERR_UNINITIALIZED Interface not initialized.
E_FAIL pId is invalid or bad.
E_FAILED(hr) Appropriate error message.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.

See Also

ISpPhoneConverter | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.