mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Add an API call to allow the engine to know that DTMF was received.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -83,6 +83,8 @@ struct ast_speech_engine {
|
||||
int (*deactivate)(struct ast_speech *speech, char *grammar_name);
|
||||
/*! Write audio to the speech engine */
|
||||
int (*write)(struct ast_speech *speech, void *data, int len);
|
||||
/*! Signal DTMF was received */
|
||||
int (*dtmf)(struct ast_speech *speech, char dtmf);
|
||||
/*! Prepare engine to accept audio */
|
||||
int (*start)(struct ast_speech *speech);
|
||||
/*! Change an engine specific setting */
|
||||
@@ -130,6 +132,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 Signal to the engine that DTMF was received */
|
||||
int ast_speech_dtmf(struct ast_speech *speech, char dtmf);
|
||||
/*! \brief Change an engine specific attribute */
|
||||
int ast_speech_change(struct ast_speech *speech, char *name, const char *value);
|
||||
/*! \brief Change the type of results we want */
|
||||
|
Reference in New Issue
Block a user