Testing the Installation

In our Linux packages, there's an application called SimpleSREClient that tests to make sure that the software has been installed and licensed properly. The program takes a predefined grammar and audio utterance and passes them to the Engine to get a decode.

To build run the program:

  1. Navigate to the examples directory inside the Engine installation directory. By default it is /usr/share/doc/lumenvox/client/examples/
  2. Run the program called SimpleSREClient and uses the following parameters:
    1. <grammar-label> = 1
    2. <grammar-file> = ABNFDigits.gram
    3. <sound-format> = 3
    4. <audio-file> = 8587070707.pcm
    5. <server-ip> = 127.0.0.1
  3. To test an installation on the local machine you would type: ./SimpleSREClient 1 ABNFDigits.gram 2 8587070707.pcm 127.0.0.1
  4. The program should then decode the audio file, and output any alternative decodes (nBest results), along with their interpretation info, including input sentence, interpretation string and interpretation score:

Loaded Grammar!
Loaded Audio!
Decode returned!
Alternative 1:
  Interpretation 1 of 1:
    Grammar Label        : 1
    Input Sentence       : EIGHT FIVE EIGHT SEVEN O SEVEN O SEVEN O SEVEN
    Interpretation String: 8587070707
    Interpretation Score : 918
Alternative 2:
  Interpretation 1 of 1:
    Grammar Label        : 1
    Input Sentence       : EIGHT FIVE EIGHT SEVEN O SEVEN O SEVEN O SEVEN EIGHT
    Interpretation String: 85870707078
    Interpretation Score : 914
Alternative 3:
  Interpretation 1 of 1:
    Grammar Label        : 1
    Input Sentence       : EIGHT FIVE EIGHT SEVEN O SEVEN O SEVEN O SEVEN TWO
    Interpretation String: 85870707072
    Interpretation Score : 909

Testing the LumenVox-Asterisk Connection

Once you have verified that the Speech Engine is running correctly, you can ensure the LumenVox-Asterisk connection is successful by running a simple speech recognition application. The following Dial Plan* context will allow you to call in to your machine and say "Yes" or "No" at the beep and get a recognition, returned as either "true" or "false." You will need to have the Asterisk console open and have its verbosity set to at least 1 in order to see the results.

[lumenvox-test]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,SpeechCreate
exten => s,n,SpeechLoadGrammar(yesno,/etc/lumenvox/Lang/BuiltinGrammars/ABNFBoolean.gram)
exten => s,n,SpeechActivateGrammar(yesno)
exten => s,n,SpeechBackground(beep)
exten => s,n,Verbose(1,Result was ${SPEECH_TEXT(0)})
exten => s,n,Verbose(1,Confidence was ${SPEECH_SCORE(0)})
*This Dial Plan uses the syntax of Asterisk version 1.6 and later. In versions 1.4 and earlier, the arguments inside the parentheses are separated by the pipe character ( | ). In version 1.6 and later a comma ( , ) is used.

Current Issues

Please see our Known Issues page for known issues with the LumenVox-Asterisk integration.

Developing Your Own Applications

Once you have the installation working, see Getting Started for basic information on developing Asterisk speech recognition applications.

© 2012 LumenVox LLC. All rights reserved.