Word identifiers always zero for L&H BNF grammars

Last reviewed: 1/25/2011

PRB Article ID: P011102

The information in this article applies to:

  • SpeechKit 6

Symptoms

L&H word identifiers !id() are returned in the ChantWord ID property but always have a value of zero.

Consider the following grammar:


#BNF+EM V1.0;
!grammar colors;
!start <colors>;
// list of color choices
<colors>: red !id(1) | blue !id(2) | green !id(3);

The ChantSREvent for a match would have one ChantWord object, but the ID property would always be 0 instead of 1 for red or 2 for blue or 3 for green.

Cause

The ChantWord ID property was not set on recognition result parsing for VoCon V2 and VoCon V3.

Status

Fixed in SpeechKit build 6.0.10.0.

Component Formats Impacted

All component formats.