[BUG] SAPI 5.0 of Windows CE 5.0
- From: "Y.D. Won" <YDWon@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 19:33:02 -0700
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
.
- Prev by Date: Re: Kernal Debug enabled cannot boot up CEPC
- Next by Date: Re: about real-time
- Previous by thread: console io
- Next by thread: losing ACK!! Is it a problem???(TFTP: Desktop losing ACK, block number = 1467, Ack again)
- Index(es):