1 Reply Latest reply on Aug 9, 2018 2:39 AM by iliapan

    Velocity Speakeasy - numbers recognition incorrect (RUS)

    iliapan Rookie

      Dear colleagues,

       

      We're using a two-digit grammar file to test voice recognition (attached in the bottom).

      At some point the system started having issues recognizing two-digit numbers, like 22, 23, 24, etc. It's keing 202, 203, 204 instead.

      What's strange is that numbers like 11,12,13,21,31,41 etc. are recognized correctly.

      We're using the latest versions of the software with the Russian Katya text-to-speech language pack. Wasn't able to install speech-to text file.

       

      Can someone help?

       

      #BNF+EM V1.1;

      /*

      Grammar: two_digit.bnf

       

       

      This will allow one to two digit numbers.

       

       

      */

       

       

      !grammar two_digit;

      !slot <number>;

      !start <Speech>;

       

       

      <Speech>: <number> {@=#1;} | <number><number> {@=#1+#2;}

      ;

       

       

      <number>:

       

       

      0|1|2|3|4|5|6|7|8|9|10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19  | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29

      | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49

      | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59  | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69

      | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79  | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89

      | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 20 | 30 | 40 | 50 | 60 | 70 | 80| 90;

        • 1. Re: Velocity Speakeasy - numbers recognition incorrect (RUS)
          iliapan Rookie

          The issue was solved by using a slightly more advanced file:

           

          #BNF+EM V1.1;

          /************************************************************************************

          GRAMMAR: Lib_2_digits.bnf

           

           

          Description:

          This is a grammar that recognizes a two-digit number, 0 to 99

           

           

          What Can I Say?

          You can say any number from 0 to 99

          You can also speak up to two separate digits

          *************************************************************************************/

           

           

          !grammar Lib_2_digits;

          !slot <Digit>;

          !slot <Teens>;

          !slot <TensBasic>;

          !start <Speech>;

           

           

          <Speech>: <Numbers>{@=#1;} | <Numbers> {@="";} ;

           

           

          //----------------------------------------------------------------------------------------------------------------------------------------

           

           

          <Numbers>: <Digit> | <TwoDigits>;

           

           

          <Digit>: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;

           

           

          <NonZeroDigit>: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;

           

           

          <Teens>: 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19;

           

           

          <TensBasic>: 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;

           

           

          <Tens>:

          <TensBasic> |

          TWENY {@ = "20";} |

          THIRDY {@ = "30";} |

          FORDY {@ = "40";} |

          FIFDY {@ = "50";} |

          SIXDY {@ = "60";} |

          SEVENDY {@ = "70";} |

          EIGHDY {@ = "80";} |

          NINEDY {@ = "90";};

           

           

          <CombinedTensBasic>:

                          20 {@ = "2";} |

          30 {@ = "3";} |

          40 {@ = "4";} |

          50 {@ = "5";} |

          60 {@ = "6";} |

          70 {@ = "7";} |

          80 {@ = "8";} |

          90 {@ = "9";};

          <CombinedTens>:

                          <CombinedTensBasic> |

          20 {@ = "2";} |

          30 {@ = "3";} |

          40 {@ = "4";} |

          50 {@ = "5";} |

          60 {@ = "6";} |

          70 {@ = "7";} |

          80 {@ = "8";} |

          90 {@ = "9";} |

          TWENY {@ = "2";} |

          THIRDY {@ = "3";} |

          FORDY {@ = "4";} |

          FIFDY {@ = "5";} |

          SIXDY {@ = "6";} |

          SEVENDY {@ = "7";} |

          EIGHDY {@ = "8";} |

          NINEDY {@ = "9";};

           

           

          <TwoDigits>:

                              <NonZeroDigit><Digit> {@=#1+#2;}|

                               <Teens> |

                               <CombinedTens><NonZeroDigit> {@=#1+#2;} |

                              <Tens>;