ISRResGraph::GetPhonemeNode

HRESULT GetPhonemeNode(DWORD dwPhonemeNode, PSRRESPHONEMENODE pNode,

PWCHAR pcIPA, PTCHAR pcEngine);

Retrieves information about the phoneme for a given node in a recognition results graph.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY
SRERR_NOTENOUGHDATA
SRERR_NOTSUPPORTED
SRERR_VALUEOUTOFRANGE

dwPhonemeNode

[in] Number of the desired node. The beginning node in a graph is always 1. An application can obtain the number of a particular node by checking the SRRESPHONEMENODE or SRRESWORDNODE structures of one node for next, previous, and alternative nodes.

pNode

[out] Address of an SRRESPHONEMENODE structure that receives information about the node.

pcIPA

[out] Address of a wide character that receives the International Phonetic Alphabet (IPA) phoneme for the node. This parameter can be NULL if an IPA phoneme must be represented by two or more engine phonemes or if the engine does not support the IPA.

pcEngine

[out] Address of the character that receives the engine-specific phoneme for the node. This parameter can be NULL if an engine phoneme must be represented by two or more IPA phonemes.