summaryrefslogtreecommitdiff
path: root/res/res_speech.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-07-18 16:22:26 +0000
committerJoshua Colp <jcolp@digium.com>2006-07-18 16:22:26 +0000
commit457ec51f8da5102a71e2a3ecfd149180c756cb33 (patch)
tree4867337433a34db5828536cbd38ff14bd22e6c45 /res/res_speech.c
parent7dd7291aa0e96cad362ce604ff19d3a835f1f770 (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 'res/res_speech.c')
-rw-r--r--res/res_speech.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/res_speech.c b/res/res_speech.c
index 62458173e..f99c352b9 100644
--- a/res/res_speech.c
+++ b/res/res_speech.c
@@ -191,6 +191,18 @@ int ast_speech_write(struct ast_speech *speech, void *data, int len)
return res;
}
+/*! \brief Change an engine specific attribute */
+int ast_speech_change(struct ast_speech *speech, char *name, const char *value)
+{
+ int res = 0;
+
+ if (speech->engine->change != NULL) {
+ res = speech->engine->change(speech, name, value);
+ }
+
+ return res;
+}
+
/*! \brief Create a new speech structure using the engine specified */
struct ast_speech *ast_speech_new(char *engine_name, int format)
{