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: https://origsvn.digium.com/svn/asterisk/trunk@60362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-04-06 01:15:50 +00:00
parent 4f20e43614
commit 4b618442a0
3 changed files with 78 additions and 15 deletions

View File

@@ -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)
{