Location: PHPKode > scripts > PHP Voice > php-voice/grammar_samples/alpha.php
<?php

/**
 * 
 * @author Ben Yacoub Hatem <hide@address.com>
 * $ version 1.0.0 Mon Nov 08 06:22:42 CET 2004 06:22:42 by hatem
 */

include ("../grammar.class.php");
 
$v = new gonx_grammar();

$v->start_grammar("", "", "1.0", "en", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/TR/speech-grammar/grammar.xsd","main");

$v->load("alpha");
//$v->load("alpha",array(true,false));	// alpha only
//$v->load("alpha",array(false,true));	// numeric only

$v->end_grammar();

$v->generate();

?>
Return current item: PHP Voice