Major res_speech cleanup. It looks much better now!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-04-06 01:29:28 +00:00
parent 4b618442a0
commit 1c2e3e1ffc
2 changed files with 53 additions and 112 deletions

View File

@@ -28,14 +28,18 @@ extern "C" {
#endif
/* 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 */
enum ast_speech_flags {
AST_SPEECH_QUIET = (1 << 0), /* Quiet down output... they are talking */
AST_SPEECH_SPOKE = (1 << 1), /* Speaker spoke! */
};
/* Speech structure states - in order of expected change */
#define AST_SPEECH_STATE_NOT_READY 0 /* Not ready to accept audio */
#define AST_SPEECH_STATE_READY 1 /* Accepting audio */
#define AST_SPEECH_STATE_WAIT 2 /* Wait for results to become available */
#define AST_SPEECH_STATE_DONE 3 /* Processing is done */
enum ast_speech_states {
AST_SPEECH_STATE_NOT_READY = 0, /* Not ready to accept audio */
AST_SPEECH_STATE_READY, /* Accepting audio */
AST_SPEECH_STATE_WAIT, /* Wait for results to become available */
AST_SPEECH_STATE_DONE, /* Processing is all done */
};
enum ast_speech_results_type {
AST_SPEECH_RESULTS_TYPE_NORMAL = 0,