summaryrefslogtreecommitdiff
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-04-20 14:50:42 +0000
committerTerry Wilson <twilson@digium.com>2012-04-20 14:50:42 +0000
commit34d670f786215c54855cf87e7ffb67c8c2007ac8 (patch)
tree8c5b8132e56711293bc063bdc6874f11ff9f67b5 /apps/app_speech_utils.c
parent73f48997f90eda77c56fdefbf5f1e3346d2f86a7 (diff)
Document Speech* apps hangup on failure and suggest TryExec
The Speech API apps return -1 on failure, which will hang up the channel. This may not be desirable behavior for some, but it isn't something that can be changed without breaking people's dialplans or writing an option to all of the Speech apps that does what TryExec already does. This patch documents the hangup behavior of the apps, and suggests TryExec as the solution. (closes issue AST-813) ........ Merged revisions 362815 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 362816 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 62a8d729a..3e071c07a 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -53,6 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
<para>This application creates information to be used by all the other applications.
It must be called before doing any speech recognition activities such as activating a grammar.
It takes the engine name to use as the argument, if not specified the default engine will be used.</para>
+ <para>Sets the ERROR channel variable to 1 if the engine cannot be used.</para>
</description>
</application>
<application name="SpeechActivateGrammar" language="en_US">
@@ -66,6 +67,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
<para>This activates the specified grammar to be recognized by the engine.
A grammar tells the speech recognition engine what to recognize, and how to portray it back to you
in the dialplan. The grammar name is the only argument to this application.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<application name="SpeechStart" language="en_US">
@@ -76,6 +78,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
<description>
<para>Tell the speech recognition engine that it should start trying to get results from audio being
fed to it.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<application name="SpeechBackground" language="en_US">
@@ -104,6 +107,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
<para>The first text and score are ${SPEECH_TEXT(0)} AND ${SPEECH_SCORE(0)} while the second are ${SPEECH_TEXT(1)}
and ${SPEECH_SCORE(1)}.</para>
<para>The first argument is the sound file and the second is the timeout integer in seconds.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
@@ -118,6 +122,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
</syntax>
<description>
<para>This deactivates the specified grammar so that it is no longer recognized.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<application name="SpeechProcessingSound" language="en_US">
@@ -130,6 +135,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
<description>
<para>This changes the processing sound that SpeechBackground plays back when the speech recognition engine is
processing and working to get results.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<application name="SpeechDestroy" language="en_US">
@@ -141,6 +147,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
<para>This destroys the information used by all the other speech recognition applications.
If you call this application but end up wanting to recognize more speech, you must call SpeechCreate()
again before calling any other application.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<application name="SpeechLoadGrammar" language="en_US">
@@ -153,6 +160,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
</syntax>
<description>
<para>Load a grammar only on the channel, not globally.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<application name="SpeechUnloadGrammar" language="en_US">
@@ -164,6 +172,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
</syntax>
<description>
<para>Unload a grammar.</para>
+ <para>Hangs up the channel on failure. If this is not desired, use TryExec.</para>
</description>
</application>
<function name="SPEECH_SCORE" language="en_US">