diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-06 01:15:50 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-06 01:15:50 +0000 |
commit | 5f1367dd74a624f13c6961d727c1f19ee61b536b (patch) | |
tree | aeab6cb7a6097b1ac4817f9d87a43211cd86e096 /res/res_speech.c | |
parent | d30e10b717c97c48f41c6ef4dfed5b6ec08cd0af (diff) |
Merged revisions 60361 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r60361 | file | 2007-04-05 22:14:00 -0300 (Thu, 05 Apr 2007) | 2 lines
Add support for returning different types of results (ie: NBest).
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60362 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_speech.c')
-rw-r--r-- | res/res_speech.c | 13 |
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) { |