mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user