/*********************************************************************** * NOTICE OF COMPUTER PROGRAM USE RESTRICTIONS * * * * This program was developed by the Navy Center for Applied * * Research in Artificial Intelligence. Its distribution and * * use are governed by a Software Use Agreement. * * * *********************************************************************** * uttIPC.h * * begun: 5/?/2002 * * last modified: 5/9/2002 * * * * by: Myriam Abramson, William Adams * * * * This is the human speech input module header file, including IPC * * message formats. * * * * The default prefix for the speech input module is * * UTT ("Utterance"). * * * * This module uses custom written TCP/IP communcation to get speech * * input from the user ("ViaVoice") and sends it out in IPC messages. * * Other versions of this module could be written to similarly forward * * speech input from "Sphinx" or even keyboard input using the same * * IPC message format. * * * *********************************************************************** * * $Header: /usr3/Challenge/challenge/src/UTT/uttIPC.h,v 1.2 2002年05月09日 19:42:34 nrl02chal Exp $ * * REVISION HISTORY: * * $Log: uttIPC.h,v $ * Revision 1.2 2002年05月09日 19:42:34 nrl02chal * Minor revision to comment block at top of file for CVS. * * ***********************************************************************/ #ifndef UTTModule_h #define UTTModule_h #include "commonInterface.h" /* "Timestamp" definition */ #define UTT_ModuleName "UTT_Module" /* The commonInterface.h does not define the IPC format string for the timestamp, nor an IPC format name for use within other format strings. Therefore they are declared here for now. */ #define UTT_Timestamp_FORMAT "{double, [char: 10]}" #define UTT_Timestamp_FORMAT_NAME "UTT_Timestamp_FORMAT" /* -------------------- Types and IPC Format Strings --------------------- */ /* message names are interspersed */ typedef struct { /* speech input from ViaVoice/etc */ char *mesg; /* the utterance */ Timestamp timestamp; /* timestamp for utterance's receipt */ } UTT_Utterance_Msg; #define UTT_Utterance_Msg_FORMAT_NAME "UTT_Utterance_Msg_FORMAT" #define UTT_Utterance_Msg_FORMAT "{string, UTT_Timestamp_FORMAT}" #define UTT_Send_Utterance_Msg "SendUtteranceMsg" #endif