@onereach/step-voice 7.0.9-processttschunk.14 → 7.0.9-processttschunk.17

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.
@@ -3,7 +3,7 @@ interface INPUT {
3
3
  textChunk: string;
4
4
  isFinal: boolean;
5
5
  flush?: boolean;
6
- messageId?: string;
6
+ ttsContext: any;
7
7
  }
8
8
  interface EVENT extends VoiceEvent {
9
9
  exitId?: string;
@@ -5,14 +5,15 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
5
5
  class ProcessTtsChunk extends voice_1.default {
6
6
  async runStep() {
7
7
  const call = await this.fetchData();
8
- const { textChunk, isFinal, flush, messageId } = this.data;
8
+ const { textChunk, isFinal, flush, ttsContext: getTtsContext } = this.data;
9
+ const ttsContext = await getTtsContext.call(this);
9
10
  const command = {
10
11
  name: 'process-tts-chunk',
11
12
  params: {
12
13
  chunk: textChunk,
13
14
  isFinal,
14
15
  flush,
15
- messageId,
16
+ ttsContext
16
17
  }
17
18
  };
18
19
  this.log.info('ProcessTtsChunk command', { command });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.9-processttschunk.14",
3
+ "version": "7.0.9-processttschunk.17",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",