[BUG] SAPI 5.0 of Windows CE 5.0



I built sdk of SAPI 5.0 in Windows CE 5.0.

I would like to use samples application "BASICTTS" of speech component in
Windows CE 5.0.

But, I found the error "E_INVAIDARG" in the interface function
"cpVoice->Speak" of SAPI instance "cpVoice".

I can confirm that COM instance is created correctly.

But, I don't know why the error "E_INVALIDARG" is happened in the interface
function "cpVoice->Speak".

Please hope your kindness deeply.

The following is routine of file "basicTTS.cpp"

hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);


if(SUCCEEDED(hr))
{
CComPtr<ISpVoice> cpVoice;
hr = cpVoice.CoCreateInstance(CLSID_SpVoice);
if(FAILED(hr))
RETAILMSG(TRUE,(L"cpVoice.CoCreateInstance() failed with error code
0x%x\n", hr));
}

if (SUCCEEDED(hr))
{
hr = cpVoice->Speak(L"This sample program uses basic text to
speech operations", 0, NULL);
if(FAILED(hr))
{
RETAILMSG(TRUE,(_T("cpVoice->Speak(L) failed with error code
0x%x\n"), hr));
}
}


Best Regards
Y.D. Won


.