Recognizer START-INPUT-TIMERS

This request is sent from the client to the recognizer resource when it knows that a kill-on-barge-in prompt has finished playing.  This is useful in the scenario when the recognition and synthesizer engines are not in the same session.  

When a kill-on-barge-in prompt is being played, the client may want a RECOGNIZE request to be simultaneously active so that it can detect and implement kill-on-barge-in.  But at the same time the client doesn't want the recognizer to start the No-Input Timer until the prompt is finished.

The Start-Input-Timers header field in the RECOGNIZE request allows the client to specify whether or not the timers should be started immediately. 

MRCP/2.0 435 RECOGNIZE 3
Channel-Identifier: 1e244a68-426a-4780-c@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
Start-Input-Timers: false
Dtmf-Term-Char: #
No-Input-Timeout: 15000
Dtmf-Interdigit-Timeout: 2000
Speech-Complete-Timeout: 1200
Dtmf-Term-Timeout: 2000
Recognition-Timeout: 20000
Clear-Dtmf-Buffer: true
Speech-Incomplete-Timeout: 3000
Content-Length: 36

session:grammar-0
session:grammar-1

If this value is not set to true in the RECOGNIZE request, the recognizer resource will not start the timers until the client sends a START-INPUT-TIMERS method to the recognizer resource.

In the above example, the RECOGNIZE request explicitly indicates that the No-Input-Timer should not begin until a subsequent START-INPUT-TIMERS request is sent by the client. This is indicated by the client setting the Start-Input-Timers header value to false.

Alternatively, if the client wanted to begin the No-Input-Timer as soon as the RECOGNIZE request is processed, this could be done by setting this Start-Input-Timers header to a value of true, as shown here:

Start-Input-Timers: true

Note that this is an MRCPv2 method, and should not be confused with the similar RECOGNITION-START-TIMERS method belonging to MRCPv1, which performs a similar function.


MRCPv2 START-INPUT-TIMERS Example:

C->S:  MRCP/2.0 ... START-INPUT-TIMERS 543260
              Channel-Identifier:32AECB23433801@speechrecog

S->C: MRCP/2.0 ... 543260 200 COMPLETE
              Channel-Identifier:32AECB23433801@speechrecog            




Was this article helpful?
Copyright (C) 2001-2024, Ai Software, LLC d/b/a LumenVox