Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sapi registration

4 views
Skip to first unread message

nidhi

unread,
Feb 24, 2004, 3:11:07 PM2/24/04
to
Hi...

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 Foot [MVP]

unread,
Feb 24, 2004, 3:32:37 PM2/24/04
to
SAPI can be built into your custom CE.NET platform using Platform Builder,
you'll also need a voice engine as well as the API itself. What sort of
device are you using?

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...

Chris Tacke, eMVP

unread,
Feb 24, 2004, 3:36:01 PM2/24/04
to
CE 4.x has a *lot* of features available. I've not seen any shipped device
that included all of them (I tried to make one once just to see how insanely
big the image would be). Did your OEM include SAPI? Even if they did I've
found it very near impossible to actually get it to function for even simple
TTS - just trying to compile the voices is not straightforward. After a
week of work I abandoned it and the customer went with a 3rd party TTS
solution.

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...

nidhi

unread,
Feb 25, 2004, 1:11:07 PM2/25/04
to
Hi Peter,

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

sanoob

unread,
Nov 16, 2009, 9:00:01 AM11/16/09
to
Could you please give me the steps for creating sapi.dll on platform bulider [for windows ce 5.0]. I am very new to platformbuilder. I have downloaded platform builder, but i dont know how to work on it.

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 G. Tobey [ eMVP ]

unread,
Nov 17, 2009, 12:29:09 AM11/17/09
to
You picked a strange group in which to ask. The Platform Builder group would
be the normal place for Platform Builder questions. I think that, if you're
talking about the Speech API, you should simply add the Speech API item from
the CE6 catalog to your operating system configuration and do a clean sysgen.
I can't say that I've actually verified that it gets built into the OS, but
it should.

Paul T.

"sanoob" wrote:

> .
>

0 new messages