Microsoft Speech Platform
ISpPhoneticAlphabetConverter
New in SAPI 5.3
Enables applications to convert phonemes from SAPI to the Universal Phone Set (UPS) and from UPS to SAPI.
New applications should use the UPS phone set. To use this interface, applications must call SetLangId to set the language in use, hence the phone set, to which the SAPI phonemes belong. Then it can call the SAPI2UPS and UPS2SAPI methods to perform alphabet conversions.
When to Use
Legacy applications using SAPI phone sets can use this interface to convert existing pronunciations to the UPS phone set. These languages use a SAPI phone set:- English (en-US)
- Chinese (zh-CN)
- German (de-DE)
- Spanish (es-SP)
- French (fr-FR)
- Japanese (ja-JP)
Implemented By
Methods in Vtable Order
ISpPhoneticAlphabetConverter Methods | Description |
---|---|
GetLangId | Gets the LANGID of the language of the SAPI phone set being used for conversion. |
GetMaxConvertLength | Get the maximum length of a string after conversion. |
SAPI2UPS | Returns the UPS phone id of the specified SAPI phone. |
SetLangId | Sets the language of the SAPI phone set to be used in the conversion. |
UPS2SAPI | Returns the SAPI phone id of the specified UPS phone. |