Share via


SAPI Functions (Windows Embedded CE 6.0)

1/6/2010

The following table shows the Speech API (SAPI) functions with a description of the purpose of each.

Programming element Description

SPBindToFile

This function binds the audio stream to the specified file.

SpClearEvent

This function clears an event.

SpConvertStreamFormatEnum

This function converts the specified stream format into a fully populated wave format structure.

SpCreateBestObject

This function creates an object from tokens that best match a set of attributes.

SpCreateDefaultObjectFromCategoryId

This function creates a default object from a category identifier.

SpCreateNewToken (By Category ID)

This function creates a token coercively, based on category identifier.

SpCreateNewToken (By Token ID)

This function creates a token forcefully, based on the supplied token identifier.

SpCreateNewTokenEx (By Category ID)

This function creates a new token using the category identifier and a token name.

SpCreateNewTokenEx (By Token ID)

This function creates a new token using a category identifier and a token name.

SpCreateObjectFromSubToken

This function creates an object from a subkey of the data key belonging to an object token.

SpCreateObjectFromToken

This function creates an object from an object token.

SpCreateObjectFromTokenId

This function creates an object from an object token identifier.

SpCreatePhoneConverter

This function creates an object implementing ISpPhoneConverter that allows conversion from the SAPI character phone set to the identifier phone set.

SpEnumTokens

This function enumerates the tokens for the specified category.

SpEventSerializeSize

This function calculates the size of the buffer required to serialize the specified event.

SpFindBestToken

This function enumerates the tokens for the specified category, and finds the single token that best matches the supplied attributes.

SpGetCategoryFromId

This function creates an object token category as an object implementing ISpObjectTokenCategory.

SpGetDefaultTokenFromCategoryId

This function gets the default token for the specified category.

SpGetDefaultTokenIdFromCategoryId

This function gets the default token identifier for the specified category.

SpGetDescription

This function gets the text description associated with the specified object token.

SpGetSubTokenFromToken

This function creates a subtoken from a token.

SpGetTokenFromId

This function creates an object token corresponding to the specified token identifier.

SpGetUserDefaultUILanguage

This function returns the default user interface language.

SpInitEvent

This function initializes an event structure by clearing it.

SpSetCommonTokenData

This function sets common data for an object token. Unused parameters must be NULL.

SpSetDefaultTokenForCategoryId

This function sets the default token for the specified category identifier.

SpSetDefaultTokenIdForCategoryId

This function sets a token identifier as the default for the specified category.

SpSetDescription

This function sets the resource description for the specified token.

See Also

Reference

SAPI Reference

Other Resources

Speech API (SAPI) 5.0