:) I wrote one of these modules for a project a few weeks ago. It's not in
great shape (i.e. it only performs very basic recognition and buffer
insertion (none of that understanding the english language stuff), but it's
good to serve as a prototype for connecting ViaVoice on Windows to XEmacs.
The only interesting bit that is necessary in the XEmacs source code is to
modify the Windows event loop (mswindows_wnd_proc, in event-msw.c) to add
something like this under the WM_COMMAND case:
#ifdef HAVE_SPEECH
switch(wParam) {
case SPEECH_CONNECT_ID:
SmDispatch(lParam);
return 0;
}
#endif
SPEECH_CONNECT_ID is the constant that you send to the Speech API when you
initialize it. This SmDispatch function will call any of the proper
callbacks you've registered with the Speech API without having to modify the
XEmacs source more than necessary.
You can find info on the API at:
http://www-4.ibm.com/software/speech/dev/
Andy Begel
-----Original Message-----
From: james(a)eecs.ukans.edu [mailto:jamesīŧ eecs.ukans.edu]
Sent: Tuesday, August 22, 2000 2:29 PM
To: xemacs-beta(a)xemacs.org
Subject: Voice recognition
Last November, there was some talk of writing a voice recognition
module, using IBM's Via Voice as the recognition engine. Did anything
ever come of that?
If nobody else is working on it, I'll take a pass at it. I have read
the event handling code for XEmacs, so I'm not too worried about that
part of it. However, I don't know anything at all about the module
mechanism. Pointers to documentation would be greatly appreciated.
--
Jerry James
Email: james(a)eecs.ukans.edu
WWW:
http://www.eecs.ukans.edu/~james/