

It takes the sound file as the only argument. This changes the processing sound that SpeechBackground plays back when the speech recognition engine is processing and working to get results. The only argument is the grammar name to deactivate. This deactivates the specified grammar so that it is no longer recognized. Note the timeout will only start once the sound file has stopped playing. The first argument is the sound file and the second is the timeout. Note it is possible to have more then one result. Once they stop talking the processing sound is played to indicate the speech recognition engine is working. Once they start speaking playback of the file stops, and silence is heard.

This application plays a sound file and waits for the person to speak. Tell the speech recognition engine that it should start trying to get results from audio being fed to it. The grammar name is the only argument to this application.
#Ispeech asr sdk how to#
A grammar tells the speech recognition engine what to recognize, and how to portray it back to you in the dialplan. This activates the specified grammar to be recognized by the engine. The only argument is the name of the grammar to unload. Unloads a locally loaded grammar and frees any memory used by it. First argument is the grammar name that it will be loaded as and second argument is the path to the grammar. Note that the grammar is only available as long as the channel exists, and you must call SpeechUnloadGrammar before all is done or you may cause a memory leak. You can then exit your speech recognition specific context and play back an error message, or resort to a DTMF based IVR. If an error occurs are you are not able to create an object, the variable ERROR will be set to 1. It takes the engine name to use as the argument, if not specified the default engine will be used. It must be called before doing any speech recognition activities such as activating a grammar. This application creates information to be used by all the other applications. Using a combination of these applications you can easily make a dialplan use speech recognition without worrying about what speech recognition engine is being used. These include an application to prepare for speech recognition, activate a grammar, and play back a sound file while waiting for the person to speak. The dialplan API is based around a single speech utilities application file, which exports many applications to be used for speech recognition. For your convenience, there is a preload line commented out in the nf sample file. To use the API, you must load the res_speech.so module before any connectors. This module connects through the API to speech recognition software, that is not included in the module. The generic speech recognition engine is implemented in the res_speech.so module.
