@onereach/step-voice 7.0.2-processttschunk.2 → 7.0.2-processttschunk.3
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
CHANGED
|
@@ -13,18 +13,9 @@ class ProcessTtsChunk extends voice_1.default {
|
|
|
13
13
|
isFinal
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
// const sensitiveData: SensitiveData = {
|
|
17
|
-
// muteStep: false,
|
|
18
|
-
// muteUser: false,
|
|
19
|
-
// muteBot: false,
|
|
20
|
-
// };
|
|
21
16
|
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
22
17
|
this.log.info('Received event from voicer', event);
|
|
23
18
|
});
|
|
24
|
-
// this.triggers.otherwise(async () => {
|
|
25
|
-
// await this.pauseRecording(call, command, sensitiveData)
|
|
26
|
-
// this.exitStep('next')
|
|
27
|
-
// })
|
|
28
19
|
this.triggers.otherwise(async () => {
|
|
29
20
|
await this.sendCommands({ ...call, type: 'tts-chunk' }, [command]);
|
|
30
21
|
this.exitStep('next');
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const voice_1 = tslib_1.__importDefault(require("./voice"));
|
|
5
|
+
class StartTTSChunksProcessing extends voice_1.default {
|
|
6
|
+
async runStep() {
|
|
7
|
+
const call = await this.fetchData();
|
|
8
|
+
const command = {
|
|
9
|
+
name: 'start-TTS-chunks-processing',
|
|
10
|
+
params: {}
|
|
11
|
+
};
|
|
12
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
13
|
+
this.log.info('Received event from voicer', event);
|
|
14
|
+
});
|
|
15
|
+
this.triggers.otherwise(async () => {
|
|
16
|
+
await this.pauseRecording(call, command);
|
|
17
|
+
this.exitStep('next');
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = StartTTSChunksProcessing;
|