Com4J MS Sapi Helper Functions

188 Views Asked by At

I've got problems with generating the Helper Functions of MS Sapi 5.4 with Com4j. I have to replace the combination of SAPI and Java/JNI with Com4j. For Example, I want to use the AssignFormat Method of CSpStreamFormat. A simple text to speech was no problem, so i can say that it works in basics. Any one who knows how to access the full method set (especially helper functions) of sapi 5.4 via com4j?

Thanks Stefan

1

There are 1 best solutions below

1
Eric Brown On

sphelper.h is just a set of macros and static functions. As such, a mechanical translation from C++ to Java is your best option. Not being terribly familiar with Java, I can't recommend anything, but a quick google search provides some alternatives.