@onereach/step-voice 4.0.40 → 4.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dst/Choice.d.ts +1 -0
- package/dst/Choice.js +2 -1
- package/dst/Global Command.js +2 -2
- package/dst/Hangup.js +2 -0
- package/package.json +1 -1
package/dst/Choice.d.ts
CHANGED
package/dst/Choice.js
CHANGED
|
@@ -69,7 +69,7 @@ const isRepromptTrigger = (recogResult, promptsTriggers) => {
|
|
|
69
69
|
class Choice extends voice_1.default {
|
|
70
70
|
async runStep() {
|
|
71
71
|
const channel = await this.fetchData();
|
|
72
|
-
const { textType, asr, tts, sensitiveData, noReplyDelay, usePromptsTriggers, recognitionModel, useInterspeechTimeout } = this.data;
|
|
72
|
+
const { textType, asr, tts, sensitiveData, noReplyDelay, usePromptsTriggers, recognitionModel, useInterspeechTimeout, interSpeechTimeout } = this.data;
|
|
73
73
|
const exitExists = (exitId) => {
|
|
74
74
|
return lodash_1.default.some(choices, (choice) => choice.exitId === exitId);
|
|
75
75
|
};
|
|
@@ -88,6 +88,7 @@ class Choice extends voice_1.default {
|
|
|
88
88
|
params: {
|
|
89
89
|
grammar,
|
|
90
90
|
dictation: useInterspeechTimeout,
|
|
91
|
+
interSpeechTimeout: interSpeechTimeout * 1000,
|
|
91
92
|
sections: []
|
|
92
93
|
}
|
|
93
94
|
};
|
package/dst/Global Command.js
CHANGED
|
@@ -127,12 +127,12 @@ class GlobalCommand extends voice_1.default {
|
|
|
127
127
|
switch (this.data.processHangUp) {
|
|
128
128
|
case 'user':
|
|
129
129
|
return isHangedUpByBot
|
|
130
|
-
? this.
|
|
130
|
+
? this.end()
|
|
131
131
|
: await this.exitThread(this.event, hangUpType, 'hang up');
|
|
132
132
|
case 'bot':
|
|
133
133
|
return isHangedUpByBot
|
|
134
134
|
? await this.exitThread(this.event, hangUpType, 'hang up')
|
|
135
|
-
: this.
|
|
135
|
+
: this.end();
|
|
136
136
|
case 'both':
|
|
137
137
|
return await this.exitThread(this.event, hangUpType, 'hang up');
|
|
138
138
|
case 'none':
|
package/dst/Hangup.js
CHANGED