IupSpeech
Creates a speech engine that allows speech recognition and speech.
[Windows only]
Initialization and Usage
The IupSpeechOpen function must be called after a IupOpen, so that the Speech control can be used (no binding available yet.)
To generate an application that uses this control, the program must be linked to the control’s library (iupspeech.lib on Windows ). The iupspeech.h file must also be included in the source code.
The Microsoft Speech SDK 5.1 must be installed in the system.
Creation
Ihandle* IupCreate("speech"); [in C] [Not available in IupLua]The function returns the identifier of the created handle, or NULL if an error occurs.
Attributes
GRAMMAR: Accepts a full directory path to a .xml file defining the grammar that the speech engine will be considering. Only one grammar allowed.
SAY: Speaks the given text.
Callbacks
ACTION_CB: Called when the engine recognizes a word/sentence.
int function(Ihandle *self, char *text); [in C]
self: Ihandle.
text: Full recognized text based on given grammar.
Comments
Check Speech SDK help file for more information on how to create an input xml file.
IUP's speech interface will create a "shared-recognizer", i.e., a unique recognizer that will work for the entire system. That means that the input focus can be anywhere in the system and still the recognition will be triggered.
Only one process in the system can initialize IupSpeech.
The system is greatly improved by training. Look in the control-panel in the Speech tab for more details.
Available only in Microsoft Visual Studio .NET.
Examples