summaryrefslogtreecommitdiff
path: root/include/asterisk/speech.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-04-13 00:18:52 +0000
committerJoshua Colp <jcolp@digium.com>2006-04-13 00:18:52 +0000
commit5e43f18529690f085617618e1a7b6b1c4a71dd3a (patch)
tree2df79ba8d344f5eecd8d06832c818a799f7e4492 /include/asterisk/speech.h
parente95c757521ef6b0f1f292e27373753a13aaaf752 (diff)
Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/speech.h')
-rw-r--r--include/asterisk/speech.h7
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;
};