I am trying to use Sapi 5.0 for windows ce.
The problem is when I try to instantiate the ISpVoice interface of Sapi it returns class not registered;
hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_INPROC_SERVER, IID_ISpVoice
,(VOID FAR **) &pVoice);
Do I need Sapi.dll on my device???
I am using the sapi.h & sapi.idl shipped with wince .net 4.2
Where can I get sapi.dll????
Any help is appreciated..
Thanks
Nidhi
Peter
--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org
"nidhi" <anon...@discussions.microsoft.com> wrote in message
news:55721027-8F4D-4308...@microsoft.com...
The moral of that long-winded answer is that only your OEM can answer your
question.
--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
"nidhi" <anon...@discussions.microsoft.com> wrote in message
news:55721027-8F4D-4308...@microsoft.com...
Thanks for your reply..
I am doing exactly that. I created a custome platform(webpad) containing the sapi5.0 sdk using platform builder. Then created a text to speech client in evc++. Following is the code I use:
ISpVoice *pVoice = NULL;
// Initialise COM
hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_INPROC_SERVER, IID_ISpVoice
,(VOID FAR **) &pVoice);
if(pVoice)
{
hr = pVoice->Speak(L"Hello",SPF_DEFAULT,NULL);
pVoice->Release();
}
The program fails at pVoice->Speak(L"Hello",SPF_DEFAULT,NULL);
returning -2147200966 in hr..
I have not included any voice engine exclusively for this..
Do I need to do any configurations..
Thanks in advance
Nidhi
Thanks in advance
From http://www.developmentnow.com/g/18_2004_2_0_0_96145/sapi-registration.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/
Paul T.
"sanoob" wrote:
> .
>