@onereach/step-voice 7.0.2-processttschunk.1 → 7.0.2-processttschunk.2
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/Process TTS Chunk.js +10 -6
- package/package.json +1 -1
package/dst/Process TTS Chunk.js
CHANGED
|
@@ -13,16 +13,20 @@ class ProcessTtsChunk extends voice_1.default {
|
|
|
13
13
|
isFinal
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
const sensitiveData = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
16
|
+
// const sensitiveData: SensitiveData = {
|
|
17
|
+
// muteStep: false,
|
|
18
|
+
// muteUser: false,
|
|
19
|
+
// muteBot: false,
|
|
20
|
+
// };
|
|
21
21
|
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
22
22
|
this.log.info('Received event from voicer', event);
|
|
23
23
|
});
|
|
24
|
+
// this.triggers.otherwise(async () => {
|
|
25
|
+
// await this.pauseRecording(call, command, sensitiveData)
|
|
26
|
+
// this.exitStep('next')
|
|
27
|
+
// })
|
|
24
28
|
this.triggers.otherwise(async () => {
|
|
25
|
-
await this.
|
|
29
|
+
await this.sendCommands({ ...call, type: 'tts-chunk' }, [command]);
|
|
26
30
|
this.exitStep('next');
|
|
27
31
|
});
|
|
28
32
|
}
|