mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user