diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-13 00:18:52 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-13 00:18:52 +0000 |
commit | f51c79cc26059333eccb17bfc84a9c38804bc06a (patch) | |
tree | 2df79ba8d344f5eecd8d06832c818a799f7e4492 /include/asterisk/speech.h | |
parent | 6f6ba7555c9d2cd7212060938d7ff8c1fe914b7c (diff) |
Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19645 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/speech.h')
-rw-r--r-- | include/asterisk/speech.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asterisk/speech.h b/include/asterisk/speech.h index f6aa2b0dc..afd12afda 100644 --- a/include/asterisk/speech.h +++ b/include/asterisk/speech.h @@ -29,6 +29,7 @@ extern "C" { /* Speech structure flags */ #define AST_SPEECH_QUIET (1 << 0) /* Quiet down output... they are talking */ +#define AST_SPEECH_SPOKE (1 << 1) /* Speaker did not speak */ /* Speech structure states - in order of expected change */ #define AST_SPEECH_STATE_NOT_READY 0 /* Not ready to accept audio */ @@ -50,6 +51,8 @@ struct ast_speech { int format; /*! Data for speech engine */ void *data; + /*! Cached results */ + struct ast_speech_result *results; /*! Pointer to the engine used by this speech structure */ struct ast_speech_engine *engine; }; @@ -87,7 +90,9 @@ struct ast_speech_result { char *text; /*! Result score */ int score; - /*! Next result (may not always be present) */ + /*! Matched grammar */ + char *grammar; + /*! List information */ struct ast_speech_result *next; }; |