SWIrcst—recognition start
This event is logged at the start of a recognition.
In addition to the Tokens used for every event, this event has the following tokens:
Token |
Meaning |
---|---|
ACST |
Indicates whether the acoustic state has been reset:
|
APNM |
Application name set via the swirec_application_name parameter. If the application name is an empty string, APNM is not logged. |
GRMT |
Grammar media type. For example, "GRMT=application/srgs+xml". |
GRNM |
Grammar name. (For a parameter grammar, this is the grammar ID.) |
GURIx |
Grammar URI, where x is an integer enumerating active speech grammars. |
LANG |
Grammar language. (This field is empty for parameter grammars.) |
OSRVER |
Recognizer version number. Logged only if ACST=1. |
WGHT |
Activation weight of a grammar. |
Recognizer logs the URIs of all active grammars at SWIrcst. The URI of the grammars is enumerated and stored in a field called GURIx, where x is the grammar number, starting at 0. For example, "GURI3=http://www.swi.com/mygram.grxml" would be the fourth active grammar. During the SWIrcnd event, the GURIx token refers to the grammar that produced each item on the n-best list.
Here’s a sample SWIrcst event:
TIME=20070820170530214|CHAN=CALL1|EVNT=SWIrcst|APNM=applicationName |ACST=1|GURI0=grammars/flight.grxml|GRNM=grammars/flight.grxml|LANG=en-us|GRMT=application/srgs+xml|WGHT=1|GURI1=grammars/Params1.xml|GRNM=maxloggednbest5|LANG=|GRMT=application/x-swi-parameter|WGHT=|OSRVER=3.2.0|UCPU=0|SCPU=0
This recognition-start event records the recognition start time and the grammars that were active: in this case, the grammars GURI0 and GURI1 are activated in parallel. Because the WGHT token does not apply to parameter grammars, it has no value for GURI1.
If the grammar is built-in, then Recognizer logs just the xml grammar name without the entire URL reference; for example, "GURI1=date.grxml".