[python-win32] SAPI COM server

Jannie Kakpraat japie.amerika at gmail.com
Wed Sep 16 12:35:32 CEST 2015


Well no. I select a voice that I have registered in the registry that
points to the CLSID of the python win32com dll loader,
which to my understanding should then load my class. That is the way I
understand SAPI works and how I got it to work
with my C implementation.

My class as is can be seen on pastebin here: http://pastebin.com/MeEMycp4



On Tue, Sep 8, 2015 at 7:16 PM, Tim Roberts <timr at probo.com> wrote:

> Jannie Kakpraat wrote:
> >
> > I'm trying to implement a SAPI com server in order to connect to a
> > in-house developed TTS Engine.
> > I have read chapter 5 and 12 of the book, but I am still struggling.
> > My understanding is that I can
> > load and register the sapi tbl file, and then just specify that my
> > class is implementing the ISpTTSEngine and
> > ISpObjectWithToken com interfaces as follows:
> >
> >
> >           _com_interfaces_ = ["ISpObjectWithToken", "ISpTTSEngine"]
> >
> > I have registered my server with a CLSID, but when I test it through
> > SAPI it never even gets called. I tested my class through com client
> > that I implemented and then it works fine.
> >
>
> Have you selected your engine as the default TTS engine in the Speech
> applet of Control Panel?
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20150916/a17fb461/attachment.html>


More information about the python-win32 mailing list