PureConnect

Discussion Thread View
Expand all | Collapse all

slot name for built:in grammars referenced in custom grammar

  • 1.  slot name for built:in grammars referenced in custom grammar

    Top 25 Contributor
    Posted 18 days ago
    I have a custom grammar which references a built:in number grammar. I have registered the custom grammar using Reco Register Tool. Using Reco Input tool, I am capturing the input. But in the recognition results, there is not slot name/value coming up from the ASR engine. Only Utterance is coming in the Hypothesis. Below is the custom grammar

    <?xml version="1.0"?>
    <grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"xml:lang="en-US"root="root"mode="voice">
    <rule id="root">
                <ruleref uri="builtin:grammar/number" /></rule>
    </grammar>

    I want to use custom grammar to refer built in grammar because I have to capture other inputs also along with number. So I cannot use Basic Reco Input tool.
    #Handlers

    ------------------------------
    Halesha Nagarajappa
    Accenture India
    ------------------------------


  • 2.  RE: slot name for built:in grammars referenced in custom grammar

    Top 25 Contributor
    Posted 15 days ago
    HI team,

    I got this issue resolved.while refereeing the builtin grammar in custom grammar file, i should get the value from respective grammar id not from rule from id.
    After making this change,i am seeing value in "_value" variable


    Regards
    Halesha sn

    ------------------------------
    Halesha Nagarajappa
    Accenture India
    ------------------------------