Permalink
Browse files

Added interdigitTimeout, sensitivity, speechCompleteTimeout and speec…

…hIncompleteTimeout to the Ask method
  • Loading branch information...
1 parent 1dbcae8 commit 438baafe43f606da6375727c0c29959fd2c2e1d2 Kevin Bond committed Nov 18, 2012
Showing with 8 additions and 4 deletions.
  1. +6 −2 lib/base.js
  2. +2 −2 lib/tropo-webapi.js
View
@@ -2,7 +2,7 @@
* Tropo action classes.
*
*/
-Ask = function(choices, attempts, bargein, minConfidence, name, recognizer, required, say, timeout, voice) {
+Ask = function(choices, attempts, bargein, minConfidence, name, recognizer, required, say, timeout, voice, interdigitTimeout, sensitivity, speechCompleteTimeout, speechIncompleteTimeout) {
this.choices = serializeProperty(choices);
this.attempts = attempts;
this.bargein = bargein;
@@ -12,7 +12,11 @@ Ask = function(choices, attempts, bargein, minConfidence, name, recognizer, requ
this.required = required;
this.say = serializeProperty(say);
this.timeout = timeout;
- this.voice = voice;
+ this.voice = voice;
+ this.interdigitTimeout = interdigitTimeout;
+ this.sensitivity = sensitivity;
+ this.speechCompleteTimeout = speechCompleteTimeout;
+ this.speechIncompleteTimeout = speechIncompleteTimeout;
};
Call = function(to, answerOnMedia, channel, from, headers, name, network, recording, required, timeout) {
View
@@ -8,8 +8,8 @@ TropoWebAPI = function() {
this.tropo = new Array();
};
-TropoWebAPI.prototype.ask = function(choices, attempts, bargein, minConfidence, name, recognizer, required, say, timeout, voice) {
- var ask = new base.Ask(choices, attempts, bargein, minConfidence, name, recognizer, required, say, timeout, voice);
+TropoWebAPI.prototype.ask = function(choices, attempts, bargein, minConfidence, name, recognizer, required, say, timeout, voice, interdigitTimeout, sensitivity, speechCompleteTimeout, speechIncompleteTimeout) {
+ var ask = new base.Ask(choices, attempts, bargein, minConfidence, name, recognizer, required, say, timeout, voice, interdigitTimeout, sensitivity, speechCompleteTimeout, speechIncompleteTimeout);
this.tropo.push(serializeObject("ask", ask));
};

0 comments on commit 438baaf

Please sign in to comment.