diff options
author | Joshua Colp <jcolp@digium.com> | 2006-07-18 16:22:26 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-07-18 16:22:26 +0000 |
commit | 457ec51f8da5102a71e2a3ecfd149180c756cb33 (patch) | |
tree | 4867337433a34db5828536cbd38ff14bd22e6c45 /include/asterisk/speech.h | |
parent | 7dd7291aa0e96cad362ce604ff19d3a835f1f770 (diff) |
Expand speech API so that the developer can interact with the engine more directly and use specific functions of the connector even if a generic API call is not available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/speech.h')
-rw-r--r-- | include/asterisk/speech.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/speech.h b/include/asterisk/speech.h index afd12afda..0f1af151f 100644 --- a/include/asterisk/speech.h +++ b/include/asterisk/speech.h @@ -77,6 +77,8 @@ struct ast_speech_engine { int (*write)(struct ast_speech *speech, void *data, int len); /*! Prepare engine to accept audio */ int (*start)(struct ast_speech *speech); + /*! Change an engine specific setting */ + int (*change)(struct ast_speech *speech, char *name, const char *value); /*! Try to get results */ struct ast_speech_result *(*get)(struct ast_speech *speech); /*! Accepted formats by the engine */ @@ -116,6 +118,8 @@ struct ast_speech *ast_speech_new(char *engine_name, int format); int ast_speech_destroy(struct ast_speech *speech); /*! \brief Write audio to the speech engine */ int ast_speech_write(struct ast_speech *speech, void *data, int len); +/*! \brief Change an engine specific attribute */ +int ast_speech_change(struct ast_speech *speech, char *name, const char *value); /*! \brief Change state of a speech structure */ int ast_speech_change_state(struct ast_speech *speech, int state); /*! \brief Register a speech recognition engine */ |