|
ISpPhoneConverter use without sphelper.h |
Post Reply |
|
|
06.05.2008 12:38 |
Zantagor |
I'm trying to use the ISpPhoneConverter without the use of the helpers, I'm able to do most of what I need already, using ISpVoice, listing all the voices installed, setting rate, volume, speak text.
But I need to add new pronunciation (and eventually abbreviation support) But I can't seem to be able to use ISpPhoneConverter.
Here's part of the code:
CComPtr cpPhoneConv; // Create the Lexicon instance hr = spLex.CoCreateInstance(CLSID_SpLexicon); if(SUCCEEDED(hr)) { // Create the Phonetic Converter //hr = CoCreateInstance(CLSID_SpPhoneConverter, NULL, CLSCTX_ALL,IID_ISpPhoneConverter, (void**)&cpPhoneConv); hr = cpPhoneConv.CoCreateInstance(CLSID_SpPhoneConverter); hr = cpPhoneConv->PhoneToId(L"aa", wszId); }
the last call, PhoneToId returns SPERR_UNINITIALIZED, but I can't seem to figure out why.
|
 |
|