@onereach/step-voice 7.0.2-processttschunk.12 → 7.0.2-processttschunk.13
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.
|
@@ -25,14 +25,16 @@ class StartTTSChunksProcessing extends voice_1.default {
|
|
|
25
25
|
this.log.info('tts-chunks-playback-done', event.params);
|
|
26
26
|
return this.exitStep('next', {}, false);
|
|
27
27
|
}
|
|
28
|
+
case 'timeout': {
|
|
29
|
+
this.log.info('timeout', event.params);
|
|
30
|
+
return this.exitStep(event.params.type, {}, false);
|
|
31
|
+
}
|
|
28
32
|
case 'recognition': {
|
|
29
33
|
this.log.info('recognition', event.params);
|
|
30
34
|
const params = event.params;
|
|
31
|
-
// const phrases = params.phrases
|
|
32
|
-
const exitId = 'interruption';
|
|
33
35
|
const exitData = this.exitChoiceData('voice', params);
|
|
34
36
|
this.log.info('exitData', exitData);
|
|
35
|
-
return this.exitStep(
|
|
37
|
+
return this.exitStep(event.params.type, exitData, false);
|
|
36
38
|
}
|
|
37
39
|
case 'hangup': {
|
|
38
40
|
await this.handleHangup(call);
|