Velocity - Speakeasy Grammar Lib_3_digits_ready.bnf -  0 to 999 followed by "ready"

Version 1

    Grammar File: Lib_3_digits_ready

     

    IMPORTANT:

    To connect this grammar file to a particular screen in the Velocity Console, use this article: Velocity with Speakeasy: How to add a grammar file and activate it within the project / How to add Speech to Text files

     

    Description:

      This is a grammar that recognizes a three-digit number, 0 to 999 followed by "ready"

    What Can I Say?

    • You can say any number from 0 to 999 followed by "ready".
    • You can also speak up to three separate digits followed by "ready".

     

    #BNF+EM V1.1;
    /************************************************************************************
    GRAMMAR: Lib_3_digits_ready.bnf
    
    
    Description:
      This is a grammar that recognizes a three-digit number, 0 to 999 followed by "ready"
    
    
    What Can I Say?
      You can say any number from 0 to 999 followed by "ready".
      You can also speak up to three separate digits followed by "ready".
    *************************************************************************************/ 
    
    
    !grammar Lib_3_digits_ready;
    !slot <Digit>;
    !slot <Teens>;
    !slot <TensBasic>;
    !slot <Hundred>;
    !slot <And>;
    !slot <Key_Word>;
    !start <Speech>;
    
    
    <Speech>: <Digit> {@="";} | <Digit><Keyword> {@=#1;} |
                       <Digit><Digit> {@="";} | <Digit><Digit><Keyword> {@=#1+#2;} |
                      <Digit><Digit><Digit> {@="";} | <Digit><Digit><Digit><Keyword> {@=#1+#2+#3;} ;
    
    
    <Digit>: 0 | 1 | 2 | 3 | 4  | 5 | 6 | 7  | 8 | 9;
    
    
    <Keyword>: ready;