Using the techniques explained in my jDotNetBridge demonstration I have ported my Basic4ppc SpeechLibDesktop library to B4J. This uses the ActiveX Microsoft Speech Object Library.
Note that you will need to use a 32bit Java runtime as the .NET assembly has to be compiled for a specific CPU type in order to export its' methods as unmanaged calls. I chose to use 32-bit as it will work on both 32 and 64 bit CPUs.
It is slightly unfortutunate that I can't raise events in the B4J code from the .NET side but I can't at the moment think of a way to do that (actually I do have an idea that might sort of work). Events from COM work nicely on the .NET side but I have to reveal them as flags and counts on the Java side.
EDIT :- Version1.1 now posted. See post #5 for details.
Note that you will need to use a 32bit Java runtime as the .NET assembly has to be compiled for a specific CPU type in order to export its' methods as unmanaged calls. I chose to use 32-bit as it will work on both 32 and 64 bit CPUs.
It is slightly unfortutunate that I can't raise events in the B4J code from the .NET side but I can't at the moment think of a way to do that (actually I do have an idea that might sort of work). Events from COM work nicely on the .NET side but I have to reveal them as flags and counts on the Java side.
EDIT :- Version1.1 now posted. See post #5 for details.
Attachments
Last edited: