Microsoft Speech Platform
ISpPhoneticAlphabetSelection::SetAlphabetToUPS
Sets the alphabet to be used by GetPronunciations.
Call this method to specify the phonetic alphabet that the GetPronunciations method uses to return pronunciations.
A successful call does not imply that pronunciations will be converted successfully. GetPronunciations will fail if the pronunciations cannot be converted to the specified alphabet.
HRESULT SetAlphabetToUPS(
BOOL fForceUPS
);
Parameters
- fForceUPS
- true if pronunciations should be returned in the UPS alphabet; false if pronunciations should be returned in the SAPI alphabet.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |