This sample grammar was created by Kenny Shumard of Digium to recognize human blood types.

Example Grammar of Blood Types

Author: Kenny Shumard

#ABNF 1.0 UTF-8;

language en-US;

mode voice;

tag-format ;

root $Bloodtype;

$letter = (/1.5/ "A B" {$ = "AB"}|
          /2/ "A" {$ = "A"}|
          "B" {$ = "B"}|
          "O" {$ = "O"});

$rh =   (PLUS  | POSITIVE):"+"|
        (MINUS | NEGATIVE):"-";

$type = ( TYPE );

$Bloodtype = {$=""} [$type] $letter {$+=$$} $rh {$+=$$};
				

Resources


About the Contest

This is a quarterly contest to find sample application code, grammars, prompts and tools to post in this Asterisk Speech Application Zone. The panel of judges look for uniqueness and usability, and if your submission is chosen, you win free speech recognition software. Not only that, but you will be helping your fellow Asterisk community members speed up their application development process -- and you might find some useful code for yourself!

What is the prize?

5 LumenVox Speech Engine Lite licenses.

(a value of $1225)

Deadlines and Details?

The deadline to submit your entry is Oct. 15th. The winner will be contacted via email by Oct. 30th. Please send a brief description of your application, along with the sample code, grammars, prompts or tools to News@LumenVox.com. All submissions will be considered public domain, and could potentially be posted on the internet. Please only send original code, commented code preferred. LumenVox can not endorse or be held responsible for the performance of any submission.

Good Luck, and may the best application code win!