locked
SRGS meta.current().score return always 1 RRS feed

  • Question

  • Hi to all,

    i'm pretty new in Microsoft Speech SDK, and i'm developing a simple application. I'm writing my SRGS grammar using XML language, and i need to catch the confidence score of the single recognized words. I've undestood how to use the semantic <tag> and objects, attributes and methods inside it, but the attribute meta.current().score is always set to 1. It seems like every score of every rule is set to 1. I post my simple test code to show what happens:

    <?xml version="1.0" encoding="utf-8" ?>
    
    <grammar version="1.0"
             xmlns="http://www.w3.org/2001/06/grammar"
             xml:lang="en-US"
             tag-format="semantics/1.0"
             root="main"
             mode="voice">
    
      	<rule id="main" scope="public">
    		<one-of>
    	        <item><ruleref uri="#what"/><tag>out = rules.what</tag></item>
    		</one-of>
    	</rule>
    	
    	<rule id="what" scope="public">
    		<item>what
    		<tag>out = meta.current().score
    		</tag></item>
    	</rule>
    
    </grammar>

    Wednesday, May 9, 2012 3:30 PM