Share via


ISpPhoneConverter::PhoneToId (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

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 Value

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

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpPhoneConverter
SAPI Interfaces