@onereach/step-voice 7.0.2-processttschunk.11 → 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,12 +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
|
-
|
|
32
|
-
|
|
33
|
-
return this.exitStep(
|
|
35
|
+
const exitData = this.exitChoiceData('voice', params);
|
|
36
|
+
this.log.info('exitData', exitData);
|
|
37
|
+
return this.exitStep(event.params.type, exitData, false);
|
|
34
38
|
}
|
|
35
39
|
case 'hangup': {
|
|
36
40
|
await this.handleHangup(call);
|