When you retrieve results in stt
, lid
, or lib
format, the server response includes the <continueToken>
XML tag.
You can include the value of the continueToken
tags in a GetResults
action to return only results generated after the set of results that produced the continueToken
.
For example, the following action:
http://localhost:13000/action=GetResults&Token=MTAuMS4zLjgyOjEzMDAwOkFERFRBU0s6LTEyOTk0OTU3Ng==
might produce the following XML response:
<autnresponse> <action>GETRESULTS</action> <response>SUCCESS</response> <responsedata> <stt_transcript> <stt_record> <start>0.000</start> <end>3.390</end> <label><s></label> <score>0.394</score> <rank>0</rank> </stt_record> <stt_record> <start>3.390</start> <end>3.780</end> <label>Hello</label> <score>0.344</score> <rank>0</rank> </stt_record> </stt_transcript> <continueToken>OjEzMDAwOkFs6LTEyOTk0OTU3Ng==</continueToken> <file>C:/temp/test.ctm</file> </responsedata> </autnresponse>
You can then use the following action to return all results from 3.78 seconds onwards:
http://localhost:13000/action=GetResults&Token=MTAuMS4zLjgyOjEzMDAwOkFERFRBU0s6LTEyOTk0OTU3Ng==&ContinueToken=OjEzMDAwOkFs6LTEyOTk0OTU3Ng==
The results of this action also include a new ContinueToken
that you can use to retrieve more results as IDOL Speech Server generates them.
|