aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-06 01:14:00 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-06 01:14:00 +0000
commitad1bdcb47cf6e7124c31120c00a515eb5a65d58f (patch)
tree1ee86402670fd54bc32f896f8b50624d58de3964 /res
parent65ed897e0a316d05a804b7929a23a2639a0e7d17 (diff)
Add support for returning different types of results (ie: NBest).
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60361 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_speech.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/res/res_speech.c b/res/res_speech.c
index f06638a5d..419c6086e 100644
--- a/res/res_speech.c
+++ b/res/res_speech.c
@@ -293,6 +293,19 @@ int ast_speech_change_state(struct ast_speech *speech, int state)
return res;
}
+/*! \brief Change the type of results we want */
+int ast_speech_change_results_type(struct ast_speech *speech, enum ast_speech_results_type results_type)
+{
+ int res = 0;
+
+ speech->results_type = results_type;
+
+ if (speech->engine->change_results_type)
+ res = speech->engine->change_results_type(speech, results_type);
+
+ return res;
+}
+
/*! \brief Register a speech recognition engine */
int ast_speech_register(struct ast_speech_engine *engine)
{