@onereach/step-voice 7.0.2-processttschunk.19 → 7.0.2-processttschunk.20

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.
@@ -4,6 +4,7 @@ interface INPUT {
4
4
  infiniteProcessing: boolean;
5
5
  asr: TODO;
6
6
  endpointing: number;
7
+ voiceSettings: any;
7
8
  }
8
9
  interface EVENT extends VoiceEvent {
9
10
  phrases?: TODO[];
@@ -5,7 +5,7 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
5
5
  class StartTTSChunksProcessing extends voice_1.default {
6
6
  async runStep() {
7
7
  const call = await this.fetchData();
8
- const { voiceId, infiniteProcessing, asr, endpointing } = this.data;
8
+ const { voiceId, infiniteProcessing, asr, endpointing, voiceSettings: getSettings } = this.data;
9
9
  const grammar = {
10
10
  id: this.currentStepId,
11
11
  asr: {
@@ -15,14 +15,18 @@ class StartTTSChunksProcessing extends voice_1.default {
15
15
  }
16
16
  },
17
17
  };
18
+ this.log.info('Get settings', { getSettings });
19
+ const voiceSettings = await getSettings.call(this);
18
20
  const command = {
19
21
  name: 'start-TTS-chunks-processing',
20
22
  params: {
21
23
  voiceId,
22
24
  infiniteProcessing,
23
- grammar
25
+ grammar,
26
+ voiceSettings
24
27
  }
25
28
  };
29
+ this.log.info('StartTTSChunksProcessing command', { command });
26
30
  this.triggers.local(`in/voice/${call.id}`, async (event) => {
27
31
  this.log.info('Received event from voicer', event);
28
32
  switch (event.params.type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.2-processttschunk.19",
3
+ "version": "7.0.2-processttschunk.20",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",