Discussion:
[python-win32] SAPI COM server
Jannie Kakpraat
2015-09-04 23:58:16 UTC
Permalink
Hi,

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.

Can anybody please point me to what I'm missing.


Thank you.
Tim Roberts
2015-09-08 17:16:50 UTC
Permalink
Post by Jannie Kakpraat
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
_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, ***@probo.com
Providenza & Boekelheide, Inc.
Jannie Kakpraat
2015-09-16 10:35:32 UTC
Permalink
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
Post by Tim Roberts
Post by Jannie Kakpraat
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
_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?
--
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
https://mail.python.org/mailman/listinfo/python-win32
Loading...